摘要: 1.扩展运算符 含义: 扩展运算符,三个点(...),将一个数组转为用逗号分隔的参数顺序。 例如: console.log([1,2,3]); console.log(...[1,2,3]); 结果: [1,2,3] 1,2,3 用法: 作为函数参数 function f(x,y,z) { cons 阅读全文
posted @ 2017-12-08 16:11 柠檬先生 阅读(1430) 评论(0) 推荐(1) 编辑