解除綁定()我有這樣的代碼:綁定()和click()函數
$('#people_nav>.prev, #people_nav>.next').click(function(){
// Here I need to disable event of click for needed elements, see code below
$('#people_nav>.prev, #people_nav>.next').unbind('click');
...
code
...
// Here I need resume event for click() function. How?
});
我怎樣才能恢復事件click()
功能?它應該在click(function(){...});
...
你是什麼意思「恢復」?您是否想要暫時禁用任何點擊事件,或者您是否希望該事件被暫停並重新開始? – thomaux