2018年10月25日

将数组内容打乱

摘要: // 返回min到max中的一个随机数function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1) + min)} function shuffle(arr) { for (let i = 0; 阅读全文

posted @ 2018-10-25 23:32 daV_chen 阅读(226) 评论(0) 推荐(0) 编辑

导航