我用这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