ajax进error的原因


[javascript] view plain copy print?在CODE上查看代码片派生到我的代码片
jQuery.ajax({
url: path,
type: "POST",
dataType:'json',
data:{word : 'a'},
success:function(json) {
var isSuccess = json.isSuccess;
//alert(json.content.length);
},
error:function(XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest.status); // 200
extStatus); // parsererror
alert(errorThrown); // SyntaxError: Unexpected end of input
}
});


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM