<分区>
我有一个像这样的对象数组
const jsonx =[{"name":"John Doe"},{"name2":"Marry Doe"},{"name3":"Michael"}]
我想要实现的是数组中每个对象的值如下
{"name":"John Doe","name2":"Marry Doe","name3":"Michael"}
我尝试了以下方法,但没有得到我需要的。
//console.log(Array.of(...jsonx));
//console.log(JSON.stringify(jsonx));