2013-10-05 16 views
0

當我的頁面進入一種全屏模式時,我可以運行touchwipe,但是當我離開它時,如何解除它的事件?如何解除jQuery touchwipe?

我想...

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

回答

0

我結束了使用上比文件本身以外的東西,這些東西獲取刪除並重新顯示touchwipe。所以,沒有解除綁定,而是一個工作touchwipe。