es6有哪些拓展
[if !supportLists]1. [endif]新增了块级作用域(let,const)
[if !supportLists]2. [endif]提供了定义类的语法糖(class)
[if !supportLists]3. [endif]新增了一种基本数据类型(Symbol)
[if !supportLists]4. [endif]新增了变量的解构赋值
[if !supportLists]5. [endif]函数参数允许设置默认值,引入了 rest 参数,新增了箭头函数
[if !supportLists]6. [endif]数组新增了一些 API,如 isArray / from / of 方法;数组实例新增了
entries(),keys() 和 values() 等方法
[if !supportLists]7. [endif]对象和数组新增了扩展运算符
[if !supportLists]8. [endif]ES6 新增了模块化(import/export)
[if !supportLists]9. [endif]ES6 新增了 Set 和 Map 数据结构
[if !supportLists]10. [endif]ES6 原生提供 Proxy 构造函数,用来生成 Proxy 实例
[if !supportLists]11. [endif]ES6 新增了生成器(Generator)和遍历器(Iterator)