关于javascript:js-结构化赋值

6次阅读

共计 59 个字符,预计需要花费 1 分钟才能阅读完成。

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

正文完
 0