寄生熊
寄生熊
  • 发布:2015-12-18 13:49
  • 更新:2015-12-18 17:08
  • 阅读:1445

webwiew 如何刷新子页面

分类:MUI

mui.init({
subpages: [{
url: 'xx.html',
id: 'xx.html',
styles: {
top: '45px',
bottom: '0px'
}
}]
});
数据更新了,我想重新加载子页面,也就是xx.html
reload 试了,不行。

2015-12-18 13:49 负责人:无 分享
已邀请:
blk

blk

var xx = plus.webview.getWebviewById("xx.html");
xx.loadUrl('页面地址');

M522828

M522828

在xx.html下写个function
function reload(){
//刷新页面
}

var xx = plus.webview.getWebviewById("xx.html");
xx.evalJS("reload()");

该问题目前已经被锁定, 无法添加新回复