: 나는 폰갭의 config.xml
파일에서 내가 ndex.html I get an error in google-chrome:
폰갭에있는 AppCache 및 jQuery를 모바일
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.
로 이동하면
# 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
이제 MANIFEST CACHE :
를<access origin="*"/>
이렇게하면 실제 모바일에서 실행할 때 문제가 해결됩니다. 장치. Chrome에서이 오류가 발생하는 이유는 무엇입니까? Firefox에서는 파일 저장 권한을 요청하여 정상적으로 실행됩니다.
appCache
은 phonegap?
으로 빌드 된 응용 프로그램의 성능을 향상시킵니다. 하드웨어에서 이미 사용할 수있는 캐싱 리소스가 더 빠르게 작업 할 수 있습니까? HD에있는 것보다 캐시에있는 내용이 정말 빨리 처리된다는 것을 알고 있습니다. 따라서이 경우 appCache 기능이 사용됩니다.
답변이 없습니까? ... –