在移动端给video加了一个play事件,然后给个暂时,
可是在里面我想让他页面跳转,既然没反应,
这是怎么回事??
var ss = document.getElementById('video');
ss.addEventListener('play',function(e){
ss.pause();
location.href = 'http://www.baidu.com';
},false)
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
解决了用了一个定时器去监测