然後把其中的SetAutoPlayToActive函數改成如下。就可以自動播放單詞本,並自動發音了。
function SetAutoPlayToActive() {
$('#nextBTN').click();
window.external.PlayCurrentWord();//callback function PlayWord(headword)
clearTimeout(autoPlayTimeOutId);
autoPlayTimeOutId = setTimeout(SetAutoPlayToActive, "5000");
}