如何做跨域申请Json? [英] How to do Cross Domain Request a Json ?

查看:119
本文介绍了如何做跨域申请Json?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何跨域申请Json?



请帮帮我。我使用了ajax以及get和getjson方法,但它没有用。

我在PHP中有不同的应用程序,我将从中接收数据。

How to do Cross Domain Request a Json ?

Please help me out. I have used ajax as well as get and getjson methods but it didn't work.
I have different application in PHP from which i'll receive data.

推荐答案

对于跨域请求,您必须提及数据类型'jsonp'

使用JSONP的Jquery跨域ajax调用 [ ^ ]
For Cross Domain Request, you have to mention datatype 'jsonp'
Jquery Cross-Domain ajax call using JSONP[^]


它可能对你有帮助

< a href =http://www.code-sample.com/2013/11/ajax-json-cross-domain-call-to-rest.html> http://www.code-sample.com/2013 /11/ajax-json-cross-domain-call-to-rest.html [ ^ ]
It might help you
http://www.code-sample.com/2013/11/ajax-json-cross-domain-call-to-rest.html[^]


这篇关于如何做跨域申请Json?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆