怎么解决啊,纠结了好久了:
function getFoodDetail(){
$.ajax({
url:"ashx/FoodDetail.ashx",
type:"post",
dataType:"json",
data:{action:"getFoodDetail",Id:Id},
success:function(data){
alert(data);
},
error:function(xhr){
alert('出错。。\n'+xhr.status+xhr.responseText);
alert(xhr.status);
}
});
}; |
|