我在尝试当我按下一个按钮在ajax响应中解除绑定2秒,然后重新绑定它。jquery - 在ajax上取消绑定/绑定按钮
$('#invite').click(function(){
/*ajax*/
});
和Ajax响应:
//ajax response
function(rep){
/*do stuff*/
$('#invite').unbind();
$(this).delay(2000).bind();
}
不过,这并不工程,按钮仍然unbinded永远的,有什么想法?
谢谢,工作正常! – Speedwheelftw