通过webview界面跳转的方式开发本地界面,为什么偶尔会产生应用死掉,点解任何按钮都没有反应的情况,只能重新杀掉应用重新打开,才能恢复功能。
请大神们解惑!
webview = plus.webview.create('/pages/add_device.html', 'add_device', {
titleNView: {
backgroundColor: '#0055ff',
titleText: '搜索设备',
titleColor: '#ffffff',
autoBackButton: true
}
}, {
group_id: w.group_id,
group_name: w.group_name,
});
webview&&webview.show(as, null, function(){
webview=null;//避免快速点击打开多个页面
});
0 个评论
要回复文章请先登录或注册