新用户协议
新用户协议
  • 发布:2019-01-25 15:13
  • 更新:2023-08-19 16:47
  • 阅读:1968

在h5+app,打开外部链接(例如baidu),titleNView返回按钮无法返回

分类:HTML5+

var w = plus.webview.create(this.getAttribute('href'),'general_html',{
contentAjust:false,
titleNView:{
titleColor:"#000000",backgroundColor:"#FFFFFF",
splitLine:{color:"#CCCCCC"},
autoBackButton:true
}
});

var href = this.getAttribute('href');
mui.openWindow({
url: href,
id: 'general_html',
})


系统:iOS
没有判断href具体是什么,新创建一个webview显示。导航用的titleNView. 点击返回按钮,一直提示在按一次退出应用。按了多次后,既没有退出当前webview,也没有退出应用。

在没有特定html文件的情况下,想改变back的行为,如何处理。
可以通过webview对象,重写back或者mui.back吗?

2019-01-25 15:13 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com

我也遇到这样的问题,哪位大神能回复一下。

tournersol

tournersol

遇到同样的问题 页面停顿到新开的webview界面,系统卡死了,现在解决了嘛?

1***@qq.com

1***@qq.com

mui.back = function() {  
                webview.close();  
            }

要回复问题请先登录注册