一.扩展运算符(...)将数组转化为以,分割的字符串eg: console.log(...[1,2,3,4]); //1 2 3 4 将字符串转化为数组eg: console.log([...'hello']); //['h','e','l','l','o'] 求数组中最大值eg: //求参数中最大值 let result1 = Math.max(2,5,8,23,75); console.log(result1); //ES5中求数组中的最大值 let result2 = Math.max.a…