< a target ="_ blank">使用cordova在Android中不适用于本地HTML文件 [英] <a target=“_blank”> not working for local HTML Files in Android using cordova

查看:98
本文介绍了< a target ="_ blank">使用cordova在Android中不适用于本地HTML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Android 5.1.1(Lollipop)上使用Cordova 6.4.0

I am using Cordova 6.4.0 on Android 5.1.1 (Lollipop)

当我有一个元素时,它应该在App的新窗口中打开,但没有.取而代之的是,它取代了我在CordovaWebView中的应用程序,而我无法返回到该应用程序. 我在 Cordova InAppBrowser和< a target ="_ blank" ;> 无效,但此处的网址将像google.com/youtube.com或其他任何网址一样打开. 但我只想使用带有target = _blank的href标记打开这些本地html文件 感谢您的提前帮助!

When I have an element, it is supposed to open in the new window of App but it doesn't. Instead of this, it replaces my app in the CordovaWebView and I have no way of getting back to the app. I found this question in Cordova InAppBrowser and <a target="_blank"> not working this link but here url to be opened like google.com/youtube.com or any other. But I want to simply open these local html files using href tag with target = _blank Thanks for the help in advance!

推荐答案

尝试使用target="_system",它应使用设备默认浏览器.

try using target="_system" which should use the device default browser.

Cordova链接参考

这篇关于&lt; a target ="_ blank"&gt;使用cordova在Android中不适用于本地HTML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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