ES6

1、let、const

  const需要'use strict'; 

  const:常量,不可被修改

  let:块级作用域里用比较好,避免var变量的一些影响

2、class/extends/super

  等价于ES5的构造函数,性能不如ES5,需再次验证

3、arrow function

  一种更简略的函数写法

4、template string

  ``表示起始

  ${}放变量

5、解构-destructuring

6、default、rest

  

参考文献:

1 https://my.oschina.net/zhangstephen/blog/541276

2 https://segmentfault.com/a/1190000004365693

  

原文地址:https://www.cnblogs.com/hhweb/p/6209221.html