配套课程教材请前往:http://guoyongfeng.github.io/idoc
$ git clone git@github.com:GuoYongfeng/es6-demo.git
$ cd es6-demo && npm install
$ npm run dev
以下为示例的简要说明
- let块级作用域
- const恒量定义
对象、数组的解构赋值
字符串模板
- 函数的默认值
- Arrow function 箭头函数
- spread 展开操作符
- rest 剩余操作符
- 对传参的解构
- Object.is()
- Object.assign()
- super
- proto
- iterators
- generators
- class
- get
- set
- static
- extends
- set
- map
- import
- export
MIT