forked from mrlan/EnglishPal
删了几条注释
parent
2d765b5c63
commit
8664da12de
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue