var chatList = this.data.chatList
var hash = {};
chatList = chatList.reduce(function (item, next) {
hash[next.account] ? ” : hash[next.account] = true && item.push(next);
return item
}, [])
es6语法中删除数组对象中account值相同的一个对象
最新推荐文章于 2023-02-23 21:05:53 发布