Cordova InAppBrowser和<target =" _ blank"不工作 [英] Cordova InAppBrowser and &lt;a target=&quot;_blank&quot;&gt; not working

查看:119
本文介绍了Cordova InAppBrowser和<target =" _ blank"不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS上使用带有InAppBrowser插件版本0.4.0的Cordova 3.4.1.

I am using Cordova 3.4.1 on iOS with the InAppBrowser plugin version 0.4.0.

当我有一个<a href="...." target="_blank">元素时,应该在InAppBrowser中打开它,但是没有打开.取而代之的是在CordovaWebView中替换我的应用程序,而我无法返回到该应用程序.

When I have an <a href="...." target="_blank"> element, it is supposed to open in the InAppBrowser but it doesn't. Instead in replaces my app in the CordovaWebView and I have no way of getting back to the app.

如果我执行window.open,它似乎可以正常工作,但对我所有链接添加onclick处理程序然后在InAppBrowser中打开它们,这对我来说实际上是不可行的.

if I do window.open it seems to work fine, but it isn't really feasible for me to add onclick handlers to all my links to then open them up in the InAppBrowser.

推荐答案

这似乎是由于此错误而设计的... https://issues.apache.org/jira/browse/CB-6747

This seems to be by design as per this bug... https://issues.apache.org/jira/browse/CB-6747

这篇关于Cordova InAppBrowser和<target =" _ blank"不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆