1 function delCongfu(typeArray){ 2 3 var str = []; 4 for(var i = 0,len = typeArray.length;i < len;i++){ 5 ! RegExp(typeArray[i],"g").test(str.join(",")) && (str.push(typeArray[i])); 6 } 7 alert(str); 8 9 } 10 //传入数组typeArray,生成的新数组str.
Powered by: 博客园 Copyright © 2024 股墓山庄庄主 Powered by .NET 9.0 on Kubernetes