1
0
Fork 0

删了几条注释

Bug570_CaiShuHuang
Caroline 2024-07-02 16:07:26 +08:00
parent 2d765b5c63
commit 8664da12de
1 changed files with 0 additions and 11 deletions

View File

@ -207,17 +207,6 @@ function random_select_word(word) {
[wordContainersArray[i], wordContainersArray[j]] = [wordContainersArray[j], wordContainersArray[i]];
}
// 选取前10个元素
let selectedWordContainers = wordContainersArray.slice(0, 10);
// 对选取的<p>标签进行处理
// selectedWordContainers.forEach(container => {
// console.log(container.outerHTML);
// });
// 置顶
// selectedWordContainers.forEach(p => {
// container.insertBefore(p, container.firstChild);
// });
wordContainersArray.forEach((p, index) => {
if (index < 10) {