摘要: 利用Array.prototype.sort方法和Math.random()var arr = [1,2,3,4,5,6,7,8,9,10];var out = arr.sort(function(){ return Math.random() > 0.5;} 阅读全文
posted @ 2013-01-07 18:50 Arliang 阅读(174) 评论(0) 推荐(0) 编辑