2013-05-09 49 views

回答

2

簡單window.open(「http://www.google.com」)應該工作,如果你想在你的應用程序中的瀏覽器實例中打開網頁,你應該考慮使用InAppBrowser Plugin它使用相同的window.open和優雅降級至默認

+0

我想在外部打開它browser.window.open打開應用程序本身的URL ..對吧? – Harikrishnan 2013-05-09 06:46:33

+0

感謝您的信息...其實這是與科爾多瓦版本的問題..我改變了它,現在window.open的作品。 – Harikrishnan 2013-05-09 09:04:10

+0

您可以提供更多關於確切版本和更改的信息,以幫助他人。 – ThinkFloyd 2013-05-09 09:33:55

1

對我來說,window.open()在所有情況下都不起作用。另一種解決方法是將URL分配給window.location。使用按鈕打開外部Url的示例:

Ext.Button.create({ 
      xtype: 'button', 
      text: 'open url',  
      handler: function() { 
     window.location = "http://www.google.com"; 
      }); 
相關問題