javascript数组的扩展实现代码集合
Array.prototype.del=function(n) { if(n<0)returnthis; returnthis.slice(0,n).concat(this.slice(n+1,this.length)); } //数组洗牌 Array.prototype.random=function() { varnr=[],me=this,t; while(me.length>0) { nr[nr.length]=me[t=Math.fl...