标签:
audioDom.addEventListener ("timeupdate",function(){
var msecond = this.currentTime;//获取当前时间
var m = parseInt(msecond/60);//分
var s = parseInt(msecond%60);//秒
var ms = (m<10 ? ("0"+m):m)+":"+(s<10 ? ("0"+s):s);
document.getElementById("time2").innerHTML = ms;
},false);
标签:
原文地址:http://www.cnblogs.com/xiaoyunyun/p/4823685.html