-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathES新特性.js
More file actions
49 lines (49 loc) · 856 Bytes
/
ES新特性.js
File metadata and controls
49 lines (49 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* ES5 增加严格模式
* 对Object, Array, Function 等构造函数的功能进行扩展
*
* Object.defineProperty()
*
* ES6
* 块级作用域
* 关键字声明let, const
* 对象属性赋值简写
* 解构赋值
* 函数参数默认值
* 展开运算符
* 箭头函数
* 模版字符串
* 迭代器,生成器
* class, constructor, extends, super
* 模块Modules
* Map, Set, WeakMap, WeakSet
* Proxy
* Symbol关键字
* Promise
* find, findIndex
*
* ES7 3**2 // Math.pow(3, 2);
* includes 方法
* 装饰器
*
* ES8
* async/await
* Object.entries / Object.values
* Object.getOwnPropertyDescriptors
* String padStart, padEnd
*
* ES9
*
* for await of
*
* Promise.finally方法
*
* ES10
* flat, flatMap
* Object.fromEntries
* String trimStart, trimEnd
* BigInt
*
* ES11
* Promise.allSettled
*/