js数组去重 徐同保 2021-06-24 59 阅读1分钟 限ES6 最简洁 let arr = [0, 1, 1, '1', 2] let newArr = [...new Set(arr)] console.log(newArr)