摘要: 1. ES6 Set let a = [1,1,2,2,3,4,5,6,7,7,7]; Array.from(new Set(a)); //[1, 2, 3, 4, 5, 6, 7] [...new Set(a)]; //[1, 2, 3, 4, 5, 6, 7] 2. IndexOf 判断 let 阅读全文
posted @ 2020-05-12 17:49 Mr_R 阅读(205) 评论(0) 推荐(0) 编辑