// ES5
a = list[0], rest = list.slice(1)
// ES6
[a, ...rest] = list
js 数组分解 解构
猜你喜欢
转载自www.cnblogs.com/mengfangui/p/9494758.html
今日推荐
周排行