2013-10-09 73 views

回答

0

你必須使用這 html頁面看到這個

http://docs.phonegap.com/en/2.3.0/cordova_inappbrowser_inappbrowser.md.html

function onDeviceReady() { 
    var ref = window.open('http://apache.org', '_blank', 'location=no'); 
    ref.addEventListener('loadstart', function() { alert('start: ' + event.url); }); 
    ref.addEventListener('loadstop', function() { alert('stop: ' + event.url); }); 
    ref.addEventListener('exit', function() { alert(event.type); }); 
} 
+0

我使用phoneapp 3.0與inappbrowser。我已經嘗試過'location = no',它只能在ios中工作,而不是在Android中工作。 – Arun

+0

但這是命令的HTML沒有效果是在iOS或Android – Rohit

+0

是的,這是正確的,但在這裏這是由插件正確的處理?我們可以在插件代碼上做任何事情,就像我在Xcode中做的一樣。 – Arun

0
在config.xml文件

,讓你的URL的不確定模式匹配的允許意向的標籤。

<allow-intent href="http://*/*/*" /> 
<allow-intent href="http://*/*" /> 
<allow-intent href="https://*" />