const array1 = { aa: 1, bb: 2, cc: 3 };
const array2 = { aa: 99 };
const combinedArray = Object.assign({}, array1, array2);
console.log(combinedArray); // 输出 { aa: 99, bb: 2, cc:
正文完
const array1 = { aa: 1, bb: 2, cc: 3 };
const array2 = { aa: 99 };
const combinedArray = Object.assign({}, array1, array2);
console.log(combinedArray); // 输出 { aa: 99, bb: 2, cc: