我查看了stackoverflow中的所有.ajax jsonp parsererror,但仍然无法弄清楚如何摆脱这个错误。
JSONP Error: parsererror Error: jQuery21108956659331452101_1444622439301 was not called
JSONP was retrieved successfully
检索成功但仍然不清楚为什么我得到parsererror。代码如下。任何帮助将不胜感激!
$.ajax(this.dataSrc, {
type: "GET",
dataType: "jsonp",
jsonp: "callback",
error: function(xhr, status, error) {
console.log('JSONP Error: ' + status + error);
},
complete: function(xhr, status) {
console.log('JSONP was retrieved successfully');
}
});