TADPOLE
TADPOLE
  • 发布:2016-10-04 11:48
  • 更新:2016-10-04 11:48
  • 阅读:1387

【报Bug】web view 通过append方法进行显示无法触发事件

分类:HTML5+

详细问题描述
[内容]
var subView = plus.webview.create(SUB_VEIWER_URL, "INFO_VEIWER_SUB", {
top: "0px",
bottom: '40px',
bounce: true,
scrollsToTop: true,
scrollIndicator: 'none'
});
plus.webview.currentWebview().append(subView);

//问题1:下面的代码无法触发loadContent事件
subView.show('fade-in', 200, function() {
mui.fire(subView, 'loadContent', {
id: "xxxxx"
});
})//猜测问题可能是append自动进行了show操作,再次show无效

//问题2:下面的代码直接进行触发,也无法触发事件
mui.fire(subView, 'loadContent', {
id: "xxxxx"
});
//猜测问题可能因为subView还未加载完成,但append方法无法使用回调函数,导致上面的逻辑无法通过替代方法实现,只能弃用append。

2016-10-04 11:48 负责人:无 分享
已邀请:

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