数组最简单去重-Set 发表于 2017-02-10 | 更新于 2023-01-11 12345var arr = [1,2,3,3,2,1,3,5,4,11,1,1]function newArr(arr){ return Array.from(new Set(arr))}alert(newArr(arr))