然後將SetAutoPlayToActive函數更改為以下內容。可以自動播放單詞書,自動發音。
函數SetAutoPlayToActive() {
$('#nextBTN ')。單擊();
window . external . playcurrentworld();//回調函數PlayWord(headword)
clear time out(autoPlayTimeOutId);
autoPlayTimeOutId = setTimeout(SetAutoPlayToActive," 5000 ");
}