使用plus.webview.getwebviewbyid(“上个webview的id”).close 导致当前webview白屏,代码是svn上的,7月5日在真机运行上发现的这个,没在意结果打包出来的ipa包审核被拒绝
3***@qq.com
- 发布:2017-07-08 08:30
- 更新:2017-07-08 10:35
- 阅读:1684
2 个回复
3***@qq.com (作者)
目前测试后对比版本号发现只有最新的8.8hbuilder更新了一大批关于webview的功能,导致无法支持,旧版本的hbuilder打包能够正常使用plus.webview.getwebviewbyid(“上个webview的id”).close不会导致白屏
3***@qq.com (作者)
问题解决,跳转打开新的webview时
mui.openWindow({
id: 'guide',
url: 'pages/userAction/guide.html',
// styles: {
// popGesture: "none"
// },
// show: {
// aniShow: 'none'
// },
// waiting: {
// autoShow: false
// }
});
将其余配置项目注释 白屏问题就自动消失