天天看點

随機打亂數組順序

function randomsort(a, b) {
                return Math.random() > .5 ? -1 : 1;

            }
            this.questionArray.sort(randomsort)
           

繼續閱讀