Chinaunix首页 | 论坛 | 博客
  • 博客访问: 941851
  • 博文数量: 168
  • 博客积分: 3853
  • 博客等级: 中校
  • 技术积分: 1854
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-15 23:50
文章分类

全部博文(168)

文章存档

2014年(12)

2013年(46)

2012年(60)

2011年(11)

2010年(1)

2009年(17)

2008年(21)

我的朋友

发布时间:2014-03-02 21:47:58

js的跨域请求,要么在js端用jsonp来实现,要么在服务端允许跨域请求,加入一个allowCrossDomainPages 的header。但是翻看Cordova的文档。白名单config.xml中的配置:<access origin="http://*" />官方文档是这么解释的:Domain whitelisting lays the ground work for the W3C Widget Access specification. In the Wi.........【阅读全文】

阅读(11007) | 评论(0) | 转发(0)

发布时间:2013-05-06 15:37:14

在Cordova.plist文件中,设定AutoHideSplashScreen为false,然后再Js文件中  deviceready event中关闭splash画面。setTimeout(function() {navigator.splashscreen.hide();}, );......【阅读全文】

阅读(10667) | 评论(0) | 转发(0)

发布时间:2013-01-15 15:00:40

火狐浏览器 Access to restricted URI denied code: 1012这个是由于跨域访问引起的。如果是在手机phonegap中加一条白名单即可。......【阅读全文】

阅读(3120) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册