js
let test =[1,3]
let [x,y] =test
console.log(x,y) // 1,3
还可以进行不完全解构
js
let test =[1,3]
let [x] =test
console.log(x) //1
// 还可以用占位符号取得后面值 类似于
let [_,x]= test
console.log(x) //3