
1、参数扩展
1)收集剩余的参数
function show(a, b, ...args) {};
*Rest Parameter必须是最后一个形参

2)展开数组: 展开后的效果,与数组的内容一致



2、默认参数

es6
admin
11月 13, 2020
0




近期评论