最近,我把我的appname.appcache内容如下:CACHE MANIFEST现在应用程序缓存与PhoneGap的和jQuery移动
# 2010-02-10 v1
CACHE:
index.html
test1.html
test2.html
# many more project root html files
#stylesheets
css/main.css
css/normalize.css
css/themes2/jquery.mobile-1.0.min.css
#gameMessages
some-folder/name.html
#many more like this
#js
js/vendor/jquery.mobile-1.0.1.min.js
# a few more files
,当我浏览到我ndex.html I get an error in google-chrome:
Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. file:///home/username/Desktop/project-name/test1.html
XMLHttpRequest cannot load file:///home/user-name/Desktop/project-name/test1.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
在PhoneGap的的3210文件:
当真正的移动运行<access origin="*"/>
那么,这是否解决问题设备。我为什么只是在Chrome上收到这个错误。在Firefox上,它运行良好,通过询问存储文件的权限。
而且确实appCache
改善与phonegap?
构建的应用程序的性能。硬件上的缓存资源是否可以使事情变得更快?我知道缓存上的内容比HD上的内容处理得非常快。因此,在这种情况下使用appCache工具。
任何答案? ... –