由于jQuery中的Ajax请求存在未定义的错误。但它在本地工作。错误jquery1.3.2.js引用@ 3633线jQuery XMLHttpRequest错误
xhr.send(s.data);
我的代码是:
$.ajax({
type: "POST",
url: 'index.php',
data: "action=showpath&type=images&path=&default=1",
cache: false,
dataType: "html",
success: function(data){
$('#addr').html(data);
},
error:function (xhr, ajaxOptions, thrownError){
alert(xhr.status);
alert(thrownError);
}
});
警报代码显示我的(0, '未定义');
什么,我做错了什么?
我已经用萤火虫测试了它。有错误的响应显示,但它自己的状态是200 - 确定。 Ajax请求返回ajaxError,没有解释。 – 2009-06-21 23:46:29