web前段吧 关注:61贴子:59
  • 0回复贴,共1

为什么我的代码添加上监听时间就会报错

只看楼主收藏回复

MyMusic.addEventListener("timeupdate",Function (){
if(document.getElementById(cur)){
for (var i=0;i<ap.length;i++) {
ap[i].style.color="#625959";
ap[i].style.fontSize="14px";
}
document.getElementById(cur).style.color="red";
document.getElementById(cur).style.fontSize="18px";
if(ap[n+11].id==cur)
{
con.style.top=-20*n + "px";
n++;
}
}
});


IP属地:北京1楼2017-08-27 11:31回复