摘要: 1、双重for循环 + splice( ) 思路:数组的 splice() 方法删除当前重复元素,第一个参数是开始的值,第二个参数是需要删除的个数。 let arr = ["a", "the", "a", "b", "test", "good", "the", "a", "good", "a"]; 阅读全文
posted @ 2023-08-02 13:35 Wanker 阅读(149) 评论(0) 推荐(0)