es6新增特性,数组的操作方法

es6新增特性:

let const两者都有块级作用域

箭头函数

模板字符串

解构赋值

for of循环

import export导入导出

set数据结构

...展开运算符

修饰器@

class类继承

async、await

promise

Symbol

Proxy代理

操作数组的方法:

es5:concat、join、push、pop、shift、unshift、slice、splice、substring 和 substr 、sort、 reverse、indexOf 和 lastIndexOf 、every、some、filter、map、forEach、reduce

es6:find、findIndex、fill、copyWithin、Array.from、Array.of、entries、values、key、includes

猜你喜欢

转载自www.cnblogs.com/zmyxixihaha/p/12422056.html