ajax怎么解析后台传过来的json数据

2024-11-29 02:32:37
推荐回答(1个)
回答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);
}
});