let a = {
b = {
c:1
}
}
console.log(a.b.c) //1
let {b} = a
相当于 b = a.b
console.log(b.c) //1
let { b: { c } } = a
b来源于a.b
c来源于a.b.c
console.log(c) //1
超级解构
猜你喜欢
转载自www.cnblogs.com/hy96/p/12064031.html
今日推荐
周排行