ECMAScript 各版本特性
在线规范
在线规范统一托管在262.ecma-international.org
网站上,具体地址为网站地址加版本号
。
例如:
ES6
的规范,访问地址为:https://262.ecma-international.org/6.0/
ES7
的规范,访问地址为:https://262.ecma-international.org/7.0/
ES14
的规范,访问地址为:https://262.ecma-international.org/14.0/
在线规范导航
- ES5: https://262.ecma-international.org/5.1/
- ES6: https://262.ecma-international.org/6.0/
- ES7: https://262.ecma-international.org/7.0/
- ES8: https://262.ecma-international.org/8.0/
- ES9: https://262.ecma-international.org/9.0/
- ES10: https://262.ecma-international.org/10.0/
- ES11: https://262.ecma-international.org/11.0/
- ES12: https://262.ecma-international.org/12.0/
- ES13: https://262.ecma-international.org/13.0/
- ES14: https://262.ecma-international.org/14.0/
- ES15: https://262.ecma-international.org/15.0/
各版本特性
ES6
TODO: 待完善
ES7 Jun, 2016
ES8 Jun, 2017
- Object.values/Object.entries
- Object.values()
- Object.entries()
- String padding
- String.prototype.padStart()
- String.prototype.padEnd()
- Object.getOwnPropertyDescriptors
- Trailing commas in function parameter lists and calls【函数参数尾逗号】
- Async functions【异步函数】
- Shared memory and atomics【共享内存和原子】
ES9 Jun, 2018
- Lifting template literal restriction
- s (dotAll) flag for regular expressions【正则表达式 s 修饰符】
- RegExp named capture groups
- Rest/Spread Properties【剩余参数和扩展运算符】
- RegExp Lookbehind Assertions
- RegExp Unicode Property Escapes
- Promise.prototype.finally
- Asynchronous Iteration
ES10 Jun, 2019
- Optional catch binding
- JSON superset
- Symbol.prototype.description
- Function.prototype.toString revision
- Object.fromEntries
- Well-formed JSON.stringify
- String.prototype.{trimStart,trimEnd}
- String.prototype.trim()
- String.prototype.trimStart()
- String.prototype.trimEnd()
- Array.prototype.{flat,flatMap}
ES11 Jun 18, 2020
- String.prototype.matchAll
- import()
- BigInt
- Promise.allSettled
- globalThis
- for-in mechanics
- Optional Chaining【可选链运算符 (使用 ?. 运算符)】
- Nullish coalescing Operator 【空值合并运算符 (使用 ?? 运算符)】
- import.meta
ES12 Jul 2, 2021
- String.prototype.replaceAll
- Promise.any
- WeakRefs
- Logical Assignment Operators【逻辑赋值运算符 (使用 &&= 和 ||= 运算符)】
- Numeric separators【数字分隔符】
ES13 Jun 23, 2022
- Class Fields (Private instance methods and accessors, Class Public Instance Fields & Private Instance Fields, Static class fields and private static methods)
- RegExp Match Indices
- Top-level await【顶层 await】
- Ergonomic brand checks for Private Fields
- .at()
- Accessible Object.prototype.hasOwnProperty
- Class Static Block
- Error Cause
ES14 Jun 30, 2023
ES15 Jun 27, 2024
- Well-Formed Unicode Strings
- Atomics.waitAsync
- RegExp v flag with set notation + properties of strings
- Resizable and growable ArrayBuffers
- Array Grouping
- Promise.withResolvers
- ArrayBuffer transfer
ES16
- Duplicate named capture groups
- New Set methods
- RegExp Modifiers
- Import Attributes
- JSON Modules
- Sync Iterator helpers
- Promise.try
资源链接
关于此文档
仓库信息
此文档仓库位置:GitHub
bash
$ git clone https://github.com/dadaowuma/es-feature.git
$ cd es-feature
$ npm run dev # http://localhost:5173/es-feature/