标签:div cti UNC for col ret rom res new
1:[...new Set(arr)] Array.from(new Set(arr))
2:
1 function uniq(arr){ 2 let result=[] 3 for(let i=0;i<arr.length;i++){ 4 if(result.indexOf(arr[i]) == -1){ 5 result.push(arr[i]) 6 } 7 } 8 return result 9 }
标签:div cti UNC for col ret rom res new
原文地址:https://www.cnblogs.com/wjgoblin/p/11266479.html