来自 Phonegap 应用程序的 AJAX 请求

发布于 2024-09-16 21:55:19 字数 148 浏览 3 评论 0原文

我正在使用 HTML5 和 sencha touch 开发移动网络应用程序。我的下一步是使用phonegap 添加一些本机功能。我的应用程序使用 Ajax 请求从服务器组件检索数据,我不确定 ajax 是否可以在 PhoneGap 打包的应用程序中工作?我应该改用 JSONP 吗?

I'm working on a mobile web-app using HTML5 and sencha touch. My next step is to add some native capability using phonegap. My app uses Ajax requests to retrieve data from a server component and i am not sure if ajax will work within phonegap packed apps? Should i use JSONP instead?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梨涡 2024-09-23 21:55:19

不需要 JSONP。由于html文件是本地文件,因此没有跨域限制。

No need for JSONP. Since the html files are local files, there is no cross domain restriction.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文