【重温ES6核心概念和基本用法】相比ES5,ES6提供了太多的更新,简单说来,主要为以下方面(大家可以依据自己不算清晰的点选择性查看本文):
Arrows,箭头函数
Classes,类
Enhanced object literals,增强的对象字面值
Template strings:模板字符串
Destructuring:解构
Default + rest + spread:参数默认值,rest参数,扩展运算符
Let + const:命名声明的新方式
Iterators + for..of:遍历器
Generators:生成器
Unicode:更广泛的编码支持
Modules:语言层面上支持的模块机制
Module loaders:模块加载器
Map + set + weakmap + weakset:新的数据结构
Proxies:代理器
Symbols:新的基本类型,独一无二的值
Subclassable built-ins:类的继承
Promises:
Math + number + string + array + object apis:拓展了一些内置对象的方法
Binary and octal literals:二进制八进制字面量
Reflect api:操作对象的新api
Tail calls:尾调用 https://t.cn/A6G5eDlv
Arrows,箭头函数
Classes,类
Enhanced object literals,增强的对象字面值
Template strings:模板字符串
Destructuring:解构
Default + rest + spread:参数默认值,rest参数,扩展运算符
Let + const:命名声明的新方式
Iterators + for..of:遍历器
Generators:生成器
Unicode:更广泛的编码支持
Modules:语言层面上支持的模块机制
Module loaders:模块加载器
Map + set + weakmap + weakset:新的数据结构
Proxies:代理器
Symbols:新的基本类型,独一无二的值
Subclassable built-ins:类的继承
Promises:
Math + number + string + array + object apis:拓展了一些内置对象的方法
Binary and octal literals:二进制八进制字面量
Reflect api:操作对象的新api
Tail calls:尾调用 https://t.cn/A6G5eDlv
#英语[超话]#【不好看的形体】1. double chin 双下巴;2. love handles / muffin top / spare tires 腰上赘肉;3. beer belly 啤酒肚;4. thunder thigh 肥大腿;5. turkey neck/neck waddle 脖子上有褶;6. bingo wings/bat wings 胳膊上的拜拜肉;7. saddle bags 大腿外侧臃肿;8. middle-aged spread 中年腰腹部发福
A woman gives money to a member of the San Giorgio farm after she was given bread during a traditional distribution of blessed bread for the feast of San Giorgio on April 26, 2020 in Caresana, near Vercelli, northern Italy, during the country's lockdown aimed at curbing the spread of the COVID-19 infection, caused by the novel coronavirus.
MARCO BERTORELLO / AFP
MARCO BERTORELLO / AFP
✋热门推荐