es6 新特性

24 阅读1分钟

块级作用域,箭头函数,模板字符串,解构赋值 块级作用域 箭头函数,(a, b) => a + b 模板字符串,Hello, ${name} 解构赋值,[x, y] = [1, 2] 扩展运算符,[...arr, 3] class定义类,extends继承