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; } } 阅读全文
posted @ 2017-12-14 17:07 web_study 阅读(240) 评论(0) 推荐(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); ... 阅读全文
posted @ 2017-12-14 17:06 web_study 阅读(175) 评论(0) 推荐(0) 编辑

哈哈

点击右上角即可分享
微信分享提示