在標簽中,使用ontouchend來替代onclick,同時在js中添加:
$(document).on('touchend','',function(){
});
//$(document).on('touchend'); // This couldn't work
即可!
不好用的辦法如下:
$(document).on("click touchstart",function(){ // 這個會響應(yīng)twice,且有延遲,about 1''34'''
var audio = document.getElementById('missing10');
audio.load();
});