标签:html5 fixed 进度 set out gre ogre tofixed progress
getvideoprogress();
function getvideoprogress() {
setTimeout(function () {
var vid = document.getElementById("video1");
var currentTime=vid.currentTime.toFixed(1);
if(currentTime==1.2){
//触发
return false;
}
console.log(currentTime);
getvideoprogress();
}, 50);
}
标签:html5 fixed 进度 set out gre ogre tofixed progress
原文地址:https://www.cnblogs.com/newmiracle/p/11875160.html