From e3db7c30b04335cc2fe1d345813697166ad3e4f4 Mon Sep 17 00:00:00 2001 From: lixiaofeng <2368272960@qq.com> Date: Tue, 28 May 2024 19:55:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20app/static/js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/js/fillword.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/static/js/fillword.js b/app/static/js/fillword.js index 421d972..111027a 100644 --- a/app/static/js/fillword.js +++ b/app/static/js/fillword.js @@ -8,7 +8,13 @@ function getWord() { function fillInWord() { let word = getWord(); 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"); localStorage.setItem('nowWords', element.value); element.value = element.value + " " + word;