function randomsort(a, b) {
return Math.random() > .5 ? -1 : 1;
}
this.questionArray.sort(randomsort)
随机打乱数组顺序
最新推荐文章于 2023-11-21 23:18:46 发布
function randomsort(a, b) {
return Math.random() > .5 ? -1 : 1;
}
this.questionArray.sort(randomsort)