数组随机选取5条数据 //随机排序 选取前5条 数组.sort(function(){return Math.random()>0.5?-1:1;}) posted on 2013-11-11 16:48 Supe 阅读( ...) 评论( ...) 编辑 收藏 转载于:https://www.cnblogs.com/wanghk/p/3418162.html