使用js,判断数组中是否有重复数据数组去重var arr = [1,3,5,6,1,4,2,6,7]var newArr = []for(var i in arr) {if(newArr.indexOf(arr[i]) == -1) {newA2023-04-16JavaScript240