摘要: 数组去重 1、new Set() 直接去重 // 数组去重, //1: new Set() 数组去重,获得一个新数组 let array1=[6,9,8,88,8,1,1,2,2,3,3,5,7,7,'a','a'] let array2=new Set(array1); console.log(a 阅读全文
posted @ 2022-06-21 12:31 甜酒1996 阅读(61) 评论(0) 推荐(0)