将一个数组中多个对象的值取出来放到一个对象里 let temp=[] let arr=[{a1:1,b1:3},{a2:2,b2:4}] let obj=Object.assign(...arr) temp.push(obj)