摘要: 1.数组去重 var arr = [1,2,3,3,1,4]; [...new Set(arr)]; // [1, 2, 3, 4] Array.from(new Set(arr)); // [1, 2, 3, 4] [...new Set('ababbc')].join(''); // "abc" 阅读全文
posted @ 2020-06-02 18:04 lijuntao 阅读(770) 评论(0) 推荐(0) 编辑
TOP