2019年6月19日

摘要: 1.let类似于var用用来定义变量 1)let没有预解析,不存在变量提升 // var 的情况 console.log(foo); // 输出undefined var foo = 2; // let 的情况 console.log(bar); // 报错ReferenceError let ba 阅读全文

posted @ 2019-06-19 19:15 colson.zhao 阅读(220) 评论(0) 推荐(0)

摘要: 1.FormCodePoint 对象方法 用于从 Unicode 码点返回对应字符,可以识别原来es5不能识别的大于0xFFFF的码点。 String.fromCodePoint(0x20BB7) // "𠮷"2.codePointAt 实例方法 let s = '𠮷a'; for (let c 阅读全文

posted @ 2019-06-19 11:27 colson.zhao 阅读(172) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3