0
您好我想从使用这段代码Example at fiddle远程主机获得JSON,jQuery的AJAX从远程主机
在这里,我想补充一点,我使用jquery跨域AJAX插件
$("button").click(function() {
jQuery.ajax({
url: "http://50.116.19.49/rest/user.json",
type: 'GET',
success: function(result) {
$("div").html(result.responseText);
}
});
});
我正在使用jQuery AJAX GET方法。问题是当我尝试使用POST而不是GET停止工作时,需要帮助。
谢谢
user.json的文件?公开的方法? – Mate
与[Jquery的获得从远程主机JSON]可能dublicate [1] [1]:http://stackoverflow.com/questions/12990520/jquery-get-json-from-remote-host –
是json网络服务 –