阅读背景:

无法使用jQuery.ajax()从保存到iOS设备主屏幕的webapp中使用AJAX访问清单缓存的文件

来源:互联网 

I'm making a webapp. Some of the files that it loads contain pure, static .JSON data. I am using jQuery.ajax() (jQuery 1.5.2) with dataType:'json' and cache:true. Everything works well and all files are loaded. I have also configured the cache manifest to cache these JSON files (in addition to css , js, and images). Everything works well there too - when a user visits my site all the files that I need are cached correctly (I have applicationCache event handlers that confirm all is well). I have tested everything in Google Chrome and I can see that all files (including the JSON ones) are cached. When I disconnect from the network, everything works (the jQuery ajax calls automagically fetch the cached JSON files). I'm making a webapp. Some of the files that it




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: