Phonegap 打开手机浏览器
来源:互联网 发布:淘宝定制款是什么意思 编辑:程序博客网 时间:2024/05/01 02:30
网上查了好多 都不怎么好使,下面这条还算比较靠谱, 不过还是没有解决问题
- navigator.app.loadUrl(url,{ openExternal:true });
- The "navigator.app" object is only available on Android. Luckily in the soon to be released 2.3.0 version of PhoneGap you will be able to do:
window.open("http://www.google.com", "_system");
最后查了下官方文档, 问题解决:http://docs.phonegap.com/en/2.3.0/cordova_inappbrowser_inappbrowser.md.html
window.open('http://apache.org', '_System', 'location=yes');
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 you have Unicode characters in your URL. target: the target to load the URL in (
String
) (Optional, Default: "_self")_self - opens in the Cordova WebView if url is in the white-list, else it opens in the InAppBrowser _blank - always open in the InAppBrowser _system - always open in the system web browser
options: options for the InAppBrowser (
String
) (Optional, Default: "location=yes")The options string must not contain any blank space, each feature name and value must be separated by a comma. Only the value below is supported:
location - set to 'yes' or 'no' to turn the location bar on or off for the InAppBrowser
0 0
- Phonegap 打开手机浏览器
- 电脑模拟手机浏览器打开手机网页
- 如何在phonegap中使用自带浏览器打开链接
- 如何在phonegap中使用自带浏览器打开链接
- Intent调用手机指定浏览器打开网页
- 手机浏览器下怎么打开app应用
- android打开网页,使用手机浏览器
- 手机浏览器中打开微信
- 在浏览器中打开手机app
- iOS 调用手机浏览器打开网页
- selenium以手机浏览模式打开浏览器
- 手机浏览器下怎么打开app应用
- webView打开的页面和手机浏览器打开的不一样
- webView打开的页面和手机浏览器打开的不一样
- 手机浏览器打开手机上某个APP及注意事项
- 使浏览器打开后,默认以手机浏览器的方式打开网页
- 关于用WebView或手机浏览器打开连接问题
- 关于用WebView或手机浏览器打开连接问题
- 以Android环境为例的多线程学习笔记(三)-----------阻塞队列
- Android中当前墙纸Wallpaper存放的位置
- 如何正确读取jar包src下的文件
- 获取返回的压缩数据流
- 读TCP有感-原来TCP以下都是不可靠地
- Phonegap 打开手机浏览器
- 发现一个规律:如果google上搜不到程序报错原因,意味着隐藏着一个非常2B的bug
- APP快速通过苹果AppStore审核九大诀窍
- js下调用动态显示当前时间(兼容ie和火狐)
- ./server: error while loading shared libraries: libzmq.so.1: cannot open shared object file: No such
- 飘
- zz windows eclipse svn使用
- 视觉跟踪
- 表的连接