摘要:
6.1接口 例,排序算法需要类实现比较接口。 public interface Comparable{ int compareTo(Object other); } 泛型 public interface Comparable<T> { int compareTo(T other);//parame 阅读全文
摘要:
1.number类型始终是64位的浮点数。 2.整数最高有15位 3.类型转换 let x = "100"; let y = "10"; let z = x / y; 4.NaN let x = 100 / "Apple";//NaN NaN is a number: typeof NaN retu 阅读全文
摘要:
13.1.1 Timer let updateIntervalId=setInterval(checkForUpdates,60000); function stopCheckingForUpdates(){ clearInterval(updateIntervalId); } 事件 let oka 阅读全文
摘要:
1.数组,TypedArray strings Set Map 对象时可迭代的。 let sum=0; for(let i of [1,2,3]){ sum+=i; } 2 使用...操作符 let chars=[..."abcd"];//chars=["a","b","c","d"]; let d 阅读全文
摘要:
1.The CSS object-position property is used to specify how an or should be positioned within its container. https://www.w3schools.com/css/css3_object-p 阅读全文