摘要: 数组去重的方法 一、利用ES6 Set去重(ES6中最常用) function unique (arr) { return Array.from(new Set(arr)) } var arr = [1,1,'true','true',true,true,15,15,false,false, und 阅读全文
posted @ 2020-04-27 14:33 haccer 阅读(93) 评论(0) 推荐(0) 编辑