如何取消绑定jQuery touchwipe?

时间:2013-10-05 20:06:53

标签: jquery ios unbind

当我的页面进入一种全屏模式时,我能够touchwipe运行,但是当我离开时,如何取消绑定事件呢?

我试过......

$(document).unbind();
$(document).unbind('touchmove touchstart');
$(document).off();
$(document).off('touchmove touchstart');
$(document).touchwipe({
    wipeLeft:function(){},
    wipeRight:function(){},
    wipeUp:function(){},
    wipeDown:function(){}
});

1 个答案:

答案 0 :(得分:0)

我最终在文档本身以外的东西上使用了touchwipe,这些内容被删除并重新显示。所以,没有解开,只有工作的触摸。