源代码: var hash = {}; wordNewList = wordNewList.reduce(function(item, next) { hash[next.word] ? '' : hash[next.word] = true && item.push(next); return item }, []) 注释: wordNewList 为未去重的数组 word 是数组每个json里面用来做判断的key值