摘要: 1、结合扩展运算符使用。通过扩展运算符,在调用函数的时候,把一个数组展开,然后作为这个函数的参数 //结合扩展运算符使用 function foo(a,b,c){ console.log(a); //1 console.log(b); //3 console.log(c); //2 } //通过扩展 阅读全文
posted @ 2020-06-27 02:54 是桂 阅读(104) 评论(0) 推荐(0) 编辑