1、数组去重 let _array=[1,11,2,2,3,3,4,4,5,6,7]; const newArray=Array.from(new Set(_array)); console.log(_array,newArray)