PhoneGap InAppBrowser: open iOS Safari Browser
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In our PhoneGap iOS application, we are using the InAppBrowser plugin to display some content, and we need to open a page in Safari from within the InAppBrowser. How can we have links from within the InAppBrowser open in Safari? 回答1: From the phonegap documentation : Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser. var ref = window.open(url, target, options); ref: Reference to the InAppBrowser window. (InAppBrowser) url: The URL to load (String). Call encodeURI() on this if the URL contains