老是你讲的这些监听事件在哪可以找到详细的讲解
play.addEventListener("touchstart",function(){
if(myAudio.paused){
myAudio.play();
this.setAttribute("class","play music");
}else{
myAudio.pause();
this.setAttribute("class","music");
}
},false);
play.addEventListener("touchstart",function(){
if(myAudio.paused){
myAudio.play();
this.setAttribute("class","play music");
}else{
myAudio.pause();
this.setAttribute("class","music");
}
},false);
2016-02-25
举报