摘要: 一、利用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 @ 2022-06-11 23:44 ~逍遥★星辰~ 阅读(10) 评论(0) 推荐(0) 编辑