ES6,对象去重 let Arr=[ {"id":"1","name":"张三1"}, {"id":"2","name":"张三2"}, {"id":"3","name":"张三3"}, {"id":"1","name":"张三1"} ] function unique(arr){ const res =new Map(); return arr.filter((a)=> !res.has(a.id) && res.set(a.id,1)) } console.log(unique(Arr))