Visual studio Inappbrowser window.open不工作(visual studio 2015)

Visual studio Inappbrowser window.open不工作(visual studio 2015),visual-studio,cordova,Visual Studio,Cordova,我正试图在VS2015(cordova 6)的测试项目中使用inappbrowser打开一个网站。在index.html文件中,我添加了:- <a href="#" onclick="window.open('http://www.google.com', '_self', 'location=yes');">Google Search</a> 在config.xml中,我有以下内容:- <plugin name="cordova-plugin-inappbr

我正试图在VS2015(cordova 6)的测试项目中使用inappbrowser打开一个网站。在index.html文件中,我添加了:-

<a href="#" onclick="window.open('http://www.google.com', '_self', 'location=yes');">Google Search</a>

在config.xml中,我有以下内容:-

<plugin name="cordova-plugin-inappbrowser" version="1.3.1-dev" src="https://github.com/apache/cordova-plugin-inappbrowser" />

不知怎的,当我点击链接时,什么也没发生。这就像inappbrowser没有响应一样。这可能是白名单问题吗

Config.xml已允许:

 <plugin name="cordova-plugin-whitelist" version="1" />
  <allow-intent href="http://*/*" />
  <allow-intent href="https://*/*" />

以前我使用Cordova 3.0时,它工作得很好


这方面的一些帮助会很好。非常感谢。

Apache团队将插件功能更改为以下链接:

尝试使用官方网站查看插件更改

因此,不要使用代码:

var ref = cordova.InAppBrowser.open(url, target, options);

谢谢你的回复。我还尝试使用var ref=cordova.InAppBrowser.open(url、目标、选项);但仍然无法打开url。也许我必须按照你的建议下载插件?看起来插件根本没有运行。请尝试下载最新版本并在本地安装。您知道Phonegap不是一个新版本吗?你知道这两个都是网站包装吗?