扩展运算符(...)将一个数组转为用逗号分隔的参数序列作用: 1)将一个数组,变为参数序列 let add = (x, y) => x + y; let numbers = [3, 45]; console.log(add(...numbers))//48 2)使用扩展运算符展开数组代替apply方法,将数组转为函数的参数 //ES5取数组最大值 console.log(Math.max.apply(this,[654,233,727])); //ES6扩展运算符 console.log(Math.max(...[654,233,727])); 3)使用push将一个数组添加到另一...