最近,我把我的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工具。
任何答案? ... –