当我的页面进入一种全屏模式时,我可以让touchwipe运行,但是当我离开它时,我如何解除绑定它的事件呢?
我试过..。
$(document).unbind();
$(document).unbind('touchmove touchstart');
$(document).off();
$(document).off('touchmove touchstart');
$(document).touchwipe({
wipeLeft:function(){},
wipeRight:function(){},
wipeUp:function(){},
wipeDown:function(){}
});
发布于 2013-10-06 21:08:45
我最终在文档本身之外的其他东西上使用了touchwipe,一些东西被移除并重新显示。所以,不是解除绑定,而是一个有效的触摸擦拭。
https://stackoverflow.com/questions/19202172
复制