1扩展运算符.。。。
Math.max(12,2323,12);
等价于Math.max(...[12,2323,12]);
应用:
1)合并数组: [1,23232,...numbers]
2)函数的返回值
2还剩下挺多的,到时候用到再看
1扩展运算符.。。。
Math.max(12,2323,12);
等价于Math.max(...[12,2323,12]);
应用:
1)合并数组: [1,23232,...numbers]
2)函数的返回值
2还剩下挺多的,到时候用到再看