双webview,下拉刷新,我想首次加载不调用下拉刷新。查了下资料好像auto有用,但是我设置了没什么效果,代码如下:
mui.init({
swipeBack: true, //启用右滑关闭功能
pullRefresh: {
container: '#pullrefresh',
down: {
auto: false,
callback: pulldownRefresh
},
up: {
contentrefresh: '正在加载...',
callback: pullupRefresh
}
}
});
求指导
8***@qq.com (作者)
回调没问题,能正常跑啊。
2017-06-25 14:21
8***@qq.com (作者)
function pulldownRefresh() {
setTimeout(function() {
if(revData == null) {
getaData();
} else {
showCacheData(revData)
}
mui('#pullrefresh').pullRefresh().endPulldownToRefresh();
mui('#pullrefresh').pullRefresh().refresh(true);
}, 100);
}
2017-06-25 14:25