andayer
andayer
  • 发布:2021-06-08 10:46
  • 更新:2021-06-08 10:46
  • 阅读:454

利用webview的跳转的方式开发应用

分类:HTML5+

通过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 关注 分享

要回复文章请先登录注册