var subpages = [{
url: 'pullrefresh_trans_manage.html',
id: 'pullrefresh_trans_manage.html',
styles: {
top: '120px',
bottom: '0px',
}
}];
var contentWebview = plus.webview.create(subpages[0].url, subpages[0].id, subpages[0].styles);
plus.webview.currentWebview().append(contentWebview);
contentWebview.evalJS("mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)");
//'pullrefresh_trans_manage.html就是初始化pullrefresh
if(mui) {
mui.plusReady(function() {
setTimeout(function() {
mui('#pullrefresh').pullRefresh().pullupLoading();
}, 1000);
});
} else {
mui.ready(function() {
mui('#pullrefresh').pullRefresh().pullupLoading();
});
}
用HBuilder真机运行可以刷新数据,可是用云端打包之后,pullrefresh根本不起作用,没有看到任何刷新动作,真是醉了。云端打包有何讲究??
HBulider真机运行效果

云端打包后运行效果