一、数组去重写法 1.方法1 var arr = [2,"12",2,12,1,2,1,1,1,1,6,12,12,13,13,6]; //console.log([...new Set(arr)]) 二、