对象结构示例

合并 
var jsonc = { id: 0, text: "sfas", completed: true } var cs = {...jsonc, completed: false} console.log(cs) // {id: 0, text: "sfas", completed: false}

 

posted @ 2020-05-27 15:21  林中有风  阅读(107)  评论(0编辑  收藏  举报