我用這PullToRefresh插件:pulltorefresh.js - 禁用暫時
https://github.com/BoxFactura/pulltorefresh.js#api
它運作良好,但我有一個彈出我的DIV內嵌滾動頁面上。 問題是,當我想向上滾動(在div中)PullToRefresh被觸發。當彈出窗口打開時,是否可以「刪除」或臨時禁用PullToRefresh?
PullToRefresh.init({
mainElement: 'body',
onRefresh: function(){
refreshAll();
}
});
編輯: delete PullToRefresh;
//不起作用
EDIT2: https://github.com/BoxFactura/pulltorefresh.js/blob/master/dist/pulltorefresh.js