乐趣区

关于javascript:js-结构化赋值

let obj = {a:1,b:2},
{a:c,b:d} = obj,
model = {c,d}
// model = {c:1,d:2}

退出移动版