JS数组去重的常用4种方法 JS数组去重的常用4种方法1.ES6的Set类数组去重 var arr = [1,2,2,3,3,4,4,1,5,6,6,5] function unique (arr) { return Array.from(ne