📜  concat 对象 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:55.988000             🧑  作者: Mango

代码示例1
const obj1 = { food: 'pizza', car: 'ford' };
const obj2 = { animal: 'dog' };

const obj3 = { ...obj1, ...obj2 };
console.log(obj3);