以下は私のAJAXコードです。ここで私はある価値を持ってサービスに当たっています。サービスは正常に呼び出されていますが、成功メソッドには入っていません。それはエラーメソッドにのみ入っています。 Unexpected token S
jquery ajaxで "parsererror"を取得する
$.ajax({
type: 'GET',
url: 'http://domin.com:9000/ramsweb/rest/DetailRest/addOrderContacts/123456/' + customerId,
success: function (data, status, xhr) {
console.log(data);
$("#loadingSpinner").hide();
},
error: function (jqXhr, textStatus, errorMessage) {
$('.ErrorMsg').html('<h5>An error has occurred</h5>');
},
fail: function (data) {
$('.ErrorMsg').html('<h5>data loading failed</h5>');
}
});
おそらく応答リターンの問題は、その応答をあなたの質問に追加できますか? – GillesC
通話時のcustomerIDの値は?また、このWebサービスを単独でテストしましたか? –
'dataType:" text "をajaxに追加してください。 –