我使用onended来触发某些东西,但它似乎只触发一次。
有什么线索吗?
$('video').bind('ended', function() {
alert('ended!');
});
发布于 2015-07-22 13:21:22
$(document).ready(function(){
$('video').on('ended',function(){
console.log('Video has ended!');
});
});
发布于 2015-07-22 13:23:38
它应该可以工作,检查this小提琴。
removeEventListener
或jQuery.unbind
。https://stackoverflow.com/questions/31554329
复制相似问题