From 8664da12defc513b8cf142e7100518fa23173d1d Mon Sep 17 00:00:00 2001 From: Caroline <2070136618@qq.com> Date: Tue, 2 Jul 2024 16:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E4=BA=86=E5=87=A0=E6=9D=A1=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/js/word_operation.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/static/js/word_operation.js b/app/static/js/word_operation.js index 7f2cdd2..45032b9 100644 --- a/app/static/js/word_operation.js +++ b/app/static/js/word_operation.js @@ -207,17 +207,6 @@ function random_select_word(word) { [wordContainersArray[i], wordContainersArray[j]] = [wordContainersArray[j], wordContainersArray[i]]; } - // 选取前10个元素 - let selectedWordContainers = wordContainersArray.slice(0, 10); - - // 对选取的
标签进行处理 -// selectedWordContainers.forEach(container => { -// console.log(container.outerHTML); -// }); - // 置顶 -// selectedWordContainers.forEach(p => { -// container.insertBefore(p, container.firstChild); -// }); wordContainersArray.forEach((p, index) => { if (index < 10) {