es6:剩余参数
2018-10-21 本文已影响0人
gis杭州
function ff(first,second,...remainingArgs){
console.log(first+"......:"+second);
console.log(remainingArgs);
}
ff(2,5,8,"hehe","ok","communicate");
image.png
function ff(first,second,...remainingArgs){
console.log(first+"......:"+second);
console.log(remainingArgs);
}
ff(2,5,8,"hehe","ok","communicate");
image.png