0
我宣布我的页面中的音频文件:HTML5音频不能再次发挥后停止
var audio = new Audio('my.mp3');
然后我用单击事件发挥它:
$(document).click(function() {
audio.currentTime = 0; // to make sure it play from the begain
audio.play();
})
它只能在玩第一次点击时间结束后,我点击该文件,它不能再次播放。我可以如何让它再次播放?