function randomsort(a, b) {
return Math.random() > .5 ? -1 : 1;
}
this.questionArray.sort(randomsort)
随机打乱数组顺序
猜你喜欢
转载自blog.csdn.net/liangkaihuaen/article/details/96442524
今日推荐
周排行