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);
时间: 2024-10-27 17:21:43