当前位置: 动力学知识库 > 问答 > 编程问答 >

html5 - Testing phonegap ajax locally in a browser?

问题描述:

Is there any product or tool I can use to test a phonegap application's ajax in chrome? I'd like to keep developing in Chrome, but cross-domain requests are going to kill me here.

Ideally, I could still use chrome, and somehow the ajax would get intercepted and run by a proxy of some sort.

网友答案:

Start chrome using --disable-web-security and you can make cross-site ajax requests. This was broken for a while, but it's fixed again.

网友答案:

use the simulator. If that doesn't suit your needs your best bet is to dev that portion elsewhere on the server, or create the proxy.

分享给朋友:
您可能感兴趣的文章:
随机阅读: