Skip to content

Commit fd088ac

Browse files
committed
doc: ES7 feature list
1 parent 40437de commit fd088ac

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

docs/intro.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -624,22 +624,34 @@ fs.writeFileSync('out.js.map', result.sourceMap);
624624

625625
**Stage 0**
626626

627-
- es7.comprehensions:数组推导
628-
- es7.classProperties:类的属性
629-
- es7.functionBind:函数的绑定运算符
627+
- Function Bind Syntax 函数的绑定运算符
628+
- String.prototype.at 字符串的静态方法at
630629

631630
**Stage 1**
632631

633-
- es7.decorators:修饰器
634-
- es7.exportExtensions:export的扩展写法
635-
- es7.trailingFunctionCommas:函数参数的尾逗号
632+
- Class and Property Decorators Class的修饰器
633+
- Class Property Declarations Class的属性声明
634+
- es7.exportExtensions:export的写法改进
635+
- String.prototype.{trimLeft,trimRight} 字符串删除头尾空格的方法
636636

637637
**Stage 2**
638638

639-
- es7.exponentiationOperator:指数运算符
640-
- es7.asyncFunctions:async函数
641639
- es7.objectRestSpread:对象的Rest参数和扩展运算符
642640

641+
**Stage 3**
642+
643+
- SIMD API “单指令,多数据”命令集
644+
- Async Functions async函数
645+
- Object.values/Object.entries Object的静态方法values()和entries()
646+
- String padding 字符串长度补全
647+
- Trailing commas in function parameter lists and calls 函数参数的尾逗号
648+
- Object.getOwnPropertyDescriptors Object的静态方法getOwnPropertyDescriptors
649+
650+
**Stage 4**
651+
652+
- Array.prototype.includes 数组实例的includes方法
653+
- Exponentiation Operator 指数运算符
654+
643655
ECMAScript当前的所有提案,可以在TC39的官方网站[Github.com/tc39/ecma262](https://github.com/tc39/ecma262)查看。
644656

645657
Babel转码器可以通过安装和使用插件来使用各个stage的语法。

0 commit comments

Comments
 (0)