ES6解构表达式

数组解构比如有一个数组:let arr = [1,2,3]我想获取其中的值,只能通过角标。ES6可以这样:const [x,y,z] = arr;// x,y,z将与arr中的每个位置对应来取值 // 然后打印 console.log...