Javascript Phonegap/Cordova InApp浏览器未启动

Javascript Phonegap/Cordova InApp浏览器未启动,javascript,cordova,browser,in-app,Javascript,Cordova,Browser,In App,我不知道为什么,但当我做以下事情时 <img id="buttons" src="https://qikout.com/apppics/MerchantPromo.png" style="margin:1% auto; width:99% !important;" onclick="openextlink('https://qikout.com');"/> function openextlink(url) { var ref = window.open(url, '_blank'

我不知道为什么,但当我做以下事情时

<img id="buttons" src="https://qikout.com/apppics/MerchantPromo.png" style="margin:1% auto; width:99% !important;" onclick="openextlink('https://qikout.com');"/>

function openextlink(url)
{
var ref = window.open(url, '_blank', 'location=no');
//window.plugins.childBrowser.showWebPage(url, { showLocationBar: true });
}
它通过

<div onclick="scan();" class="menu-right"></div>


基本上,它可以很好地扫描,得到结果。它将结果移动到loadpet函数,甚至发送到openextlink函数,但不会弹出查看器。

您的窗口。打开的代码看起来很正确(基于自Cordova 3.0起InAppBrowser的工作方式)

您能确认以下所有内容吗

  • InApp浏览器插件在您的/#myapp#/platforms/#platform#/www/cordova#u plugins.js文件中有一个条目
  • InApp浏览器插件文件夹位于/#myapp#/platforms/#platform#/plugins中/
  • iApp浏览器的相关SRC文件也位于平台文件夹中(例如,IOS插件SRC文件为:/#myapp#/platforms/#platform#/#appname#/Plugins/)

此外,如果以上所有内容都已确认,但仍然没有成功,您可能会尝试在inappbrowser.js文件的末尾追加一行console.log('inappbrowser.js file has loaded!'),以确认它确实正在加载(假设您已设置调试控制台并可以查看输出)。

n[1]中的值是多少?
<div onclick="scan();" class="menu-right"></div>