1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-28 21:32:20 +00:00

doc: ES7 feature list

This commit is contained in:
ruanyf 2016-02-09 09:57:28 +08:00
parent 40437de61a
commit fd088aceab

View File

@ -624,22 +624,34 @@ fs.writeFileSync('out.js.map', result.sourceMap);
**Stage 0** **Stage 0**
- es7.comprehensions数组推导 - Function Bind Syntax 函数的绑定运算符
- es7.classProperties类的属性 - String.prototype.at 字符串的静态方法at
- es7.functionBind函数的绑定运算符
**Stage 1** **Stage 1**
- es7.decorators修饰器 - Class and Property Decorators Class的修饰器
- es7.exportExtensionsexport的扩展写法 - Class Property Declarations Class的属性声明
- es7.trailingFunctionCommas函数参数的尾逗号 - es7.exportExtensionsexport的写法改进
- String.prototype.{trimLeft,trimRight} 字符串删除头尾空格的方法
**Stage 2** **Stage 2**
- es7.exponentiationOperator指数运算符
- es7.asyncFunctionsasync函数
- es7.objectRestSpread对象的Rest参数和扩展运算符 - es7.objectRestSpread对象的Rest参数和扩展运算符
**Stage 3**
- SIMD API “单指令,多数据”命令集
- Async Functions async函数
- Object.values/Object.entries Object的静态方法values()和entries()
- String padding 字符串长度补全
- Trailing commas in function parameter lists and calls 函数参数的尾逗号
- Object.getOwnPropertyDescriptors Object的静态方法getOwnPropertyDescriptors
**Stage 4**
- Array.prototype.includes 数组实例的includes方法
- Exponentiation Operator 指数运算符
ECMAScript当前的所有提案可以在TC39的官方网站[Github.com/tc39/ecma262](https://github.com/tc39/ecma262)查看。 ECMAScript当前的所有提案可以在TC39的官方网站[Github.com/tc39/ecma262](https://github.com/tc39/ecma262)查看。
Babel转码器可以通过安装和使用插件来使用各个stage的语法。 Babel转码器可以通过安装和使用插件来使用各个stage的语法。