diff --git a/app/static/js/word_operation.js b/app/static/js/word_operation.js index 45032b9..b3c8bd4 100644 --- a/app/static/js/word_operation.js +++ b/app/static/js/word_operation.js @@ -201,7 +201,7 @@ function random_select_word(word) { // 将NodeList转换为数组 let wordContainersArray = [...wordContainers]; - // 随机打乱数组 + // 随机打乱数组,乱序 for (let i = wordContainersArray.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [wordContainersArray[i], wordContainersArray[j]] = [wordContainersArray[j], wordContainersArray[i]];