Tor*_*orK 3 html5 ipad cordova
我为我的Ipad制作了一个HTML5应用程序.这是通过phonegap原生的.在我的应用程序中,我有som外部链接到网页.但是,当我打开这些链接时,外部网页会在我的应用程序中打开,而且由于我的Ipad没有"后退按钮",因此无法返回我的应用程序.即使我关闭应用程序,然后再次打开它,外部网页也会打开.
我试图用一个儿童浏览器解决问题,但我也遇到了同样的问题.这是我使用的代码:
openChildBrowser('http://en.wikipedia.org/wiki/Lapis_lazuli',{ showLocationBar: true });">text here</a>
Run Code Online (Sandbox Code Playgroud)
和:
<a onclick= "window.plugins.childBrowser.showWebPage('http://en.wikipedia.org/wiki/Lapis_lazuli',{showLocationBar: true});">text here</a>
Run Code Online (Sandbox Code Playgroud)
我当然经常尝试一下href.有没有人能解决我的问题?谢谢你的时间 :)
我有同样的问题.我通过在a-tag中添加target ="_ blank"来解决这个问题.
<a href="http://en.wikipedia.org/wiki/Lapis_lazuli" target="_blank">text here</a>
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助.