在讲 ES 2015 新语法之前,先来说一下为什么叫 ES.JavaScript 是这门语言的名称,它有一个为它制定标准化的组织 European Computer Manufacturers Association,直译就是欧洲计算机制造商协会.这个 ECMA 制定的 JavaScript 的实现标准,被称为 ECMAScript,不同组织写出来的 JavaScript 语言都要遵守这个 ECMAScript 标准,所以就简写为 ES+版本号. 这套 ES 标准在2015年之前最高的版本是5.…