开发者

Jquery: Unbind event handlers to bind again later

开发者 https://www.devze.com 2023-04-06 08:20 出处:网络
I have to turn off the blo开发者_如何学Gock and then turn it on again, do so event = $(\'#left_scroll\').data(\'events\');

I have to turn off the blo开发者_如何学Gock and then turn it on again, do so

event = $('#left_scroll').data('events');
$('#left_scroll').unbind();
$('#left_scroll').bind(event);

does not work, why ?


It should work as expected, most probably you have an error somewhere else in your code. Check working example here http://jsfiddle.net/VfJhd/4/

0

精彩评论

暂无评论...
验证码 换一张
取 消