let arr = [ {id:142,name:'啊啊啊'}, {id:145,name:'喂喂喂'}, {id:142,name:'啊啊啊'}, {id:145,name:'喂喂喂'} ] 想要的数组: let arr = [ {id:142,name:'啊啊啊',num:2}, {id:145,name:'喂喂喂',num:2}, ]