摘要: <script> // 第一种 ES6 new Set let arr = [1, 2, 3, 2, 1, 4, 5, 4] const result = Array.from(new Set(arr)); const result1 = [...new Set(arr)]; console.log 阅读全文
posted @ 2023-02-11 21:06 二王戏木 阅读(232) 评论(0) 推荐(0) 编辑