Object.assign 函数
var arr = [{name: 'AAA'},{age: '999'}]; var obj = {}; arr.map(x => Object.assign(obj, x)); // {"name":"AAA","age":"999"}
2023-09-27 18:57:58
var arr = [{name: 'AAA'},{age: '999'}]; var obj = {}; arr.map(x => Object.assign(obj, x)); // {"name":"AAA","age":"999"}