摘要: 一、利用ES6 Set去重(ES6中最常用) function unique (arr) { return Array.from(new Set(arr)) } var arr = [1,1,'true','true',true,true,15,15,false,false, undefined,u 阅读全文
posted @ 2020-05-26 13:56 Vition 阅读(210) 评论(0) 推荐(0) 编辑