摘要: Array.of(3,4,5,9)//[3, 4, 5, 9] 不传参数为空数组 .. let p = document.querySelectorAll('p'); let arr = Array.from(p);//结构转数组 arr.forEach(function(item){ consol 阅读全文
posted @ 2017-12-18 12:21 树叶———— 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Number.isFinite(15)//true 是否有尽 Number.isFinite(NaN)//false Number.isFinite(1/0)//false .. Number.isInteger(20)//true 返回的是否是整数 Number.isInteger(20.0)// 阅读全文
posted @ 2017-12-18 11:41 树叶———— 阅读(109) 评论(0) 推荐(0) 编辑
摘要: \u{20BB7} ;//𠮷,length:2 let s1='𠮷a'; s1.length;//3 s1.codePointAt(0);//134071 s1.codePointAt(0).toString(16);//20BB7 .. String.fromCharCode("0x20bb7 阅读全文
posted @ 2017-12-18 10:54 树叶———— 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 数组解构赋值 let a,b,c; [a,b] = [1,2]//a=1;b=2; .. let a,b,c; [a,b,c=3] = [1,2]//a=1;b=2,c=3; .. let a,b,c; [a,b,c] = [1,2]//a=1;b=2,c=undefined; .. let a = 阅读全文
posted @ 2017-12-18 10:31 树叶———— 阅读(135) 评论(0) 推荐(0) 编辑