From eb2051ca3f529d8c6164333fa53c4cb4eb15f4ac Mon Sep 17 00:00:00 2001 From: Caroline <2070136618@qq.com> Date: Wed, 3 Jul 2024 09:45:44 +0800 Subject: [PATCH] Fix bug 570 --- app/static/js/word_operation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]];