摘要: Array 新增方法 1.Array.from() 将类数组(dom对象 或 arguments)或set\map对象转换为数组 2.Array.of() 将一组值转换为数组,例如Array.of(3,5,7,9) = [3,5,7,9] 3.Array.prototype.copyWithin() 阅读全文
posted @ 2016-08-30 23:53 水乙 阅读(1798) 评论(0) 推荐(0) 编辑
摘要: let和const let和const不存在变量提升 变量一定要在声明后使用,否则报错。 var a = []; for (var i = 0; i 0xFFFF; } is32Bit("𠮷") // true is32Bit("a") // false 2.String.fromCodePoin 阅读全文
posted @ 2016-08-30 23:19 水乙 阅读(6055) 评论(0) 推荐(0) 编辑