function add([x, y]){
return x + y;
}
add([1, 2]); // 3
ES6 函数参数的解构赋值
猜你喜欢
转载自www.cnblogs.com/nongzihong/p/10678522.html
今日推荐
周排行