来自 Phonegap 应用程序的 AJAX 请求
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不需要 JSONP。由于html文件是本地文件,因此没有跨域限制。
No need for JSONP. Since the html files are local files, there is no cross domain restriction.