摘要: 两种方法模拟 ES6 set 数组去重 第一种,利用字符串 indexOf function MYSET(arr) { let str = ''; let newArr = []; if (arr.length) { newArr.push(arr[0]); str += JSON.stringif 阅读全文
posted @ 2021-01-04 21:46 Tsingtree 阅读(99) 评论(0) 推荐(0) 编辑