poetries.github.io icon indicating copy to clipboard operation
poetries.github.io copied to clipboard

ECMAScript6回顾 | Poetry's Blog

Open poetries opened this issue 6 years ago • 0 comments

http://blog.poetries.top/2017/10/21/es6-review/

整理于互联网,整理最常用的部分,完善中…. 参考资料: http://es6.ruanyifeng.com 第一部分:扩展1.1、let和const const声明一个只读的常量。一旦声明,常量的值就不能改变 let不允许在相同作用域内,重复声明同一个变量 for循环的计数器,就很合适使用let命令 不存在变量提升 会创建块级作用域 1.2、变量的解构赋值数组解构赋值应用场景 变量交换

poetries avatar Jan 30 '19 14:01 poetries