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
本文标题:es6:剩余参数
本文链接:https://www.haomeiwen.com/subject/mgqbzftx.html
网友评论