-1
我有一個簡單的jQuery請求如下所示:jQuery的阿賈克斯後沒有得到回報值
$.ajax({
type : "POST",
contentType : "application/json",
url : 'http://localhost:8080/OTM/resteasy/location/coordinates/create',
data : jsonLatLon,
dataType : "json",
success : function(result){
alert(result);
},
error: function(err){
alert(err);
}
});
螢火蟲當我看着我的控制檯,看到以下內容: POST:http://localhost:8080/OTM/resteasy/location/coordinates/create
後來當我展開它我看到了我期望看到的數據。但是,它永遠不會成功回撥。
任何想法爲什麼?
瀏覽器控制檯中的任何錯誤?還有什麼是返回的數據 –
當你看到JavaScript控制檯,你看到「拒絕訪問等等等等等相同的原產地政策等等等等」? –
什麼是'jsonLatLon'? –