EcmaScript 7 新特性 Array.prototype.includes Includes 方法用来检测数组中是否包含某个元素,返回布尔类型值。 指数操作符 在 ES 7 中引入指数运算符 【**】,用来实现幂运算,功能与 Math.pow 结果相同。 console.log(2 ** 3) // 输出结果是 8 EcmaScript 8 新特性 async 和 await async 和 await 两种语法结合可以让异步代码像同步代码一样。 async 函数 async 函数的返回值为 promise 对象。 promise 对象的结果由 async 函...