Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教demo如何本地离线访问? #7

Open
deepfunc opened this issue Apr 18, 2014 · 1 comment
Open

请教demo如何本地离线访问? #7

deepfunc opened this issue Apr 18, 2014 · 1 comment

Comments

@deepfunc
Copy link

我想用android webview本地加载html看看,本地加载没容器咋办?

@shixy
Copy link
Owner

shixy commented Apr 21, 2014

Jingle有自动加载模的功能,涉及到ajax的跨域问题,file:///协议不支持跨域(phonegap支持)。
解决方法:

  1. 使用web容器,nodejs/apache等等都可以
  2. 将所有的模板文件(demo/html/..html),都放在index.html下的#section_container里面

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants