天啊,我经常在这里... 不管怎么说,问题就在这里。我有一个不固定的功能, 我需要在一段时间后再回来(最好是当一个视频停止播放的时候, 但现在我只要几秒钟就可以了)。
I found someone with a problem similar to mine here (on the jquery forums), and while I tried to apply the solution (the first response), it didn t work. here s what I tried to do$( li , .thumbs ).bind( touchend click , playVideo);
$( li , .thumbs ).bind( touchend click , function() {
//some code
playVideo( $(this).index() );
$("li", ".thumbs").unbind( click );
setTimeout(function(){
$( li , .thumbs ).bind( touchend click );
},5000);
});
为什么?
**EDIT okay, I got the bind to come back with the timeout, but for some reason it s not completing the functionplayVideo
. It stops the video that s playing, but doesn t start the new one...