1
0
Fork 0

上传文件至 app/static/js

Bug571-TongQi
lixiaofeng 2024-05-28 19:55:38 +08:00
parent 9f03cc49fa
commit e3db7c30b0
1 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,13 @@ function getWord() {
function fillInWord() { function fillInWord() {
let word = getWord(); let word = getWord();
if (isRead) Reader.read(word, inputSlider.value); if (isRead) Reader.read(word, inputSlider.value);
if (!isChoose) return; if (!isChoose) {
if(isHighlight){
const element = document.getElementById("selected-words3");
element.value = element.value + " " + word;
}
return;
}
const element = document.getElementById("selected-words"); const element = document.getElementById("selected-words");
localStorage.setItem('nowWords', element.value); localStorage.setItem('nowWords', element.value);
element.value = element.value + " " + word; element.value = element.value + " " + word;