专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
Array.prototype.del = function(n) { (n<0) this; this.slice(0,n).concat(this.slice(n+1,this.length)); } // 洗牌 Array.prototype.random = function { var nr=, me=this, t; while(me.length>0) { nr[nr.length] = me[t = Math.floor(Math.random * me.length)]; me = me.del(t); } nr; } [阅读全文] [PDF]
1 共1条 分1页