1
0
Fork 0

上传文件至 app/static/js

Alpha-snapshot20240618
lixiaofeng 2024-05-28 19:55:26 +08:00
parent eed852cd66
commit 9f03cc49fa
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ function highLight() {
let pickedWords = document.getElementById("selected-words"); // words picked to the text area let pickedWords = document.getElementById("selected-words"); // words picked to the text area
let dictionaryWords = document.getElementById("selected-words2"); // words appearing in the user's new words list let dictionaryWords = document.getElementById("selected-words2"); // words appearing in the user's new words list
let allWords = dictionaryWords === null ? pickedWords.value + " " : pickedWords.value + " " + dictionaryWords.value; let allWords = dictionaryWords === null ? pickedWords.value + " " : pickedWords.value + " " + dictionaryWords.value;
highlightWords = document.getElementById("selected-words3");
allWords = highlightWords == null ? allWords : allWords + " " + highlightWords.value;
const list = allWords.split(" "); // 将所有的生词放入一个list中 const list = allWords.split(" "); // 将所有的生词放入一个list中
if(word !== null && word !== "" && word !== " "){ if(word !== null && word !== "" && word !== " "){
let articleContent_fb2 = articleContent; let articleContent_fb2 = articleContent;