ajax怎么解析后台传过来的json数据
1个回答
展开全部
$.ajax({
type: "GET",
traditional: true,
url: url,
//dataType: "json",
data: dataParam,
success: function (res) {
var data=evla('('+res+')');
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
common.errorResponse(XMLHttpRequest, textStatus, errorThrown);
}
});
type: "GET",
traditional: true,
url: url,
//dataType: "json",
data: dataParam,
success: function (res) {
var data=evla('('+res+')');
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
common.errorResponse(XMLHttpRequest, textStatus, errorThrown);
}
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询