//扩展运算符
let obj = { aaa: 12, bbb: 13 }
let obj2 = { ccc: 14, ddd: 15 }
let newJson={...obj,...obj2}
console.log(newJson);//{aaa: 12, bbb: 13, ccc: 14, ddd: 15}
JS...扩展运算符?
最新推荐文章于 2024-05-09 18:49:47 发布