spread operator in es6
2017-06-08
阅读 1 分钟
1.8k根据mdn的解释 the spread syntax allows an expresstion to be expanded in palces where mutiple arguments (for function calls)or multiple elements (for array literals) or multiple variables (for destrucring assignment) are expected1.在函数调用时用来展开数组到函数的参数