在jquery中取消绑定touchmove事件
我调用以下内容以防止在Web应用程序上滚动:
$('body').bind('touchmove', function(e){e.preventDefault()});
但是在一个页面上我需要取消它。 与此相反的是什么? 所以当调用页面时,我可以调用类似的东西:
$('body').bind('touchmove', function(e){e.preventDefault() == TRUE});
或者其他的东西
$('body').unbind('touchmove');
unbind
docs:
描述:从元素中删除以前附加的事件处理程序。
相反的是$('body').unbind('touchmove');
。