随笔分类 -  前端

前端框架,技术,工具
摘要:js闭包: https://www.cnblogs.com/duanlianjiang/p/5036671.html 箭头函数解决this作用域的问题 https://blog.csdn.net/weixin_37643633/article/details/78559293 https://www 阅读全文

posted @ 2019-06-25 11:59 colson.zhao 阅读(133) 评论(0) 推荐(0) |

摘要:1.基本用法 let [a, b, c] = [1, 2, 3];左右两边解构格式要保持一致。 2.默认值 let [x, y = 'b'] = ['a']; // x='a', y='b' let [x, y = 'b'] = ['a', undefined]; // x='a', y='b' 3 阅读全文

posted @ 2019-06-20 19:06 colson.zhao 阅读(259) 评论(0) 推荐(0) |

摘要: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