GaGada
GaGada
  • 发布:2016-03-02 11:18
  • 更新:2016-03-02 12:40
  • 阅读:2203

在ios下预加载页面白屏

分类:HBuilder

在ios下使用预加载都会出现白屏,经测试后发现自定义方法都没有被执行,之后测试发现直接在script打代码也没有任何效果。页面完全白屏,导航栏都没了。
代码:
var detailPage1 = null;
document.getElementById("cue").addEventListener('tap', function(){
//获得详情页面
if(!detailPage1){
detailPage1 = plus.webview.getWebviewById('cue1.html');
}
//触发详情页面的newsId事件
mui.fire(detailPage1,'newsId',{
//你要传的参数
});
mui.openWindow({
id:'cue1.html',
});
})
会不会是init方法还没执行,导致找不到id为cue1.html的页面,如果是这样的话应该怎么解决?还有在Android上是正常的。

2016-03-02 11:18 负责人:无 分享
已邀请:
maq

maq

openWindow() 没有指定 url,结果会怎样?

首次点击时 plus.webview.getWebviewById() 返回值无效,mui.fire() 给一个无效的 webview 对象会怎样?

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