














我用phonegap+jquery架构,在iphone的模拟器,android 2.1模拟器,还有真机2.1上都可以得到数据。
但在我的一台小米2.3上拿不到数据,查了半天不知道什么原因,也差点去写java 的xmlhttprequest 插件,
最后发现原来是加载页面的timeout时间问题。
在
super.loadUrl("file:///android_asset/www/index.html");
上加如下代码:
super.setIntegerProperty("loadUrlTimeoutValue", 70000);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。