addEvenetListener
music.addEventListener("touchstart",function(event){
if(audio.paused){
audio.play();
console.log(this);
// this.setAttribute("class","play");
this.style.animationPlayState="running";
}else{
audio.pause();
// this.setAttribute("class","");
console.log(this);
this.style.animationPlayState="paused";
};
},false);
page1.addEventListener("touchstart",function(event){
console.log(this);
page1.style.display="none";
page2.style.display="block";
page3.style.display="block";
page3.style.top ="100%";
setTimeout(function(){
page2.setAttribute("class","page fadeOut");
page3.setAttribute("class","page dafeIn");
},5500);
},false);
page1.addEventListener没有实现,music.addEventListener实现了