let {name,age}={name:‘asa‘,age:134};
console.log(name)==>‘asa‘
console.log(age)==>134
let [x,y]=[1,2,3]
console.log(x)===>1
console.log(y)===>2
时间: 2024-10-08 02:04:21
let {name,age}={name:‘asa‘,age:134};
console.log(name)==>‘asa‘
console.log(age)==>134
let [x,y]=[1,2,3]
console.log(x)===>1
console.log(y)===>2