ajax 返回值为何为string类型,我要object 10
$.ajax({url:"submit.jhtml",type:"POST",dataType:'json',data:{city_id:city_id},success...
$.ajax({
url: "submit.jhtml",
type: "POST",
dataType: 'json',
data:{city_id:city_id},
success: function(data) {
var datas=eval(data)[0];
},
error:function(XMLHttpRequest, textStatus, errorThrown){
alert(XMLHttpRequest.status);
alert(XMLHttpRequest.readyState);
alert(textStatus);
}
});
}); 展开
url: "submit.jhtml",
type: "POST",
dataType: 'json',
data:{city_id:city_id},
success: function(data) {
var datas=eval(data)[0];
},
error:function(XMLHttpRequest, textStatus, errorThrown){
alert(XMLHttpRequest.status);
alert(XMLHttpRequest.readyState);
alert(textStatus);
}
});
}); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询