let person = res.rows
let obj = {};
let peon = person.reduce((cur,next) => {
obj[next.goods_id] ? "" : obj[next.goods_id] = true && cur.push(next);
return cur;
},[])
数组对象根据Id去重
最新推荐文章于 2024-08-25 15:58:33 发布