12 2017 档案
摘要:var arrs = [8,19,26,4,9,0,38,10,88,7]; console.log(arrs.sort(CB)) function CB(v1,v2){ if(v1>v2){ return 1; }else{ return 0; } }
阅读全文
摘要:var arr = [2,8,0,"P",'H',"P","W",'E','B',8,0,"W"]; for(var i=0;i<arr.length;i++){ for(var j=i+1;j<arr.length;j++){ if(arr[i]==arr[j]){ arr.splice(j,1); ...
阅读全文