webview->悬浮窗口,弹出后点击遮罩层闪退 来自 魅蓝 note

小小鸟try
- 发布:2015-12-18 22:20
- 更新:2016-02-22 11:02
- 阅读:1687


测试是plus.webview.create时,参数backgroud引起的,可以试试下面的写法
floatw=plus.webview.create("tags.html","tags.html",
{width:'200px',height:'300px',margin:"auto",
scrollIndicator:'none',scalable:false,popGesture:'none'}
);
floatw.addEventListener("loaded",function(){
floatw.show('fade-in', 150, function() {
//主窗体开始侧滑并显示遮罩
self.setStyle({
mask: 'rgba(0,0,0,0.4)',
transition: {
duration: 150
}
});
floatw = null;
});
}, false);
}