。 let arr = [1,2,1,1,3,3,3,4,5]; console.log(arrayIsRepet(arr)); function arrayIsRepet(arr){//判断数组中存在重复元素 let b = []; let c = []; arr.forEach(item => Read More
posted @ 2021-02-01 18:21 古墩古墩 Views(356) Comments(0) Diggs(0)