📅  最后修改于: 2022-03-11 15:01:18.041000             🧑  作者: Mango
let obj1 = { 1: 'one' };
let obj2 = { 2: 'two' };
let obj3 = { ...obj1, ...obj2 };
console.log(obj3);
// { 1: 'one', 2: 'two' }