ES6的set去重const arr = [1,1,2,2,3,3,4,4,5,5];    const setData = Array.from(new Set(arr));console.log(setData);双重for循环去重(略)filter配合indexOf去重con...