BugFix407: fillword.js 在划新词后,会直接开始读新词(之前是会读完之前划的词后才开始读新词)

Bug407-JinHaoLin
AAAzsf 2022-06-13 15:56:58 +08:00
parent b53e7031e5
commit 5a62204864
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ function fillinWord(){
}
document.getElementById("text-content").addEventListener("click", fillinWord, false);
function read(s){
reader.cancel()
var msg = new SpeechSynthesisUtterance(s);
reader.speak(msg);
}