console.log([...new Set([1,2,3,4,2,1,2,2,2,167,4,3,32,2,1])]) 转载于:https://www.cnblogs.com/dupd/p/5889664.html