jquery ajax 返回list的处理
var url = "<%=request.getContextPath()%>/XXX.action";
var param = {'XXX':3};
$.post(url,param,function (result){
var dataObj=eval(result);//转换为数组对象
$.each( dataObj, function(i, n){ //遍历数组
var content = "<tr><td>"+n.aa+"</td></tr>";
$("#div1").append(content);
});
},"json");
相关推荐
tthappyer 2020-07-25
89463661 2020-03-01
mapdigit 2014-05-29
xiuping0 2015-12-28
罗惠东 2017-08-16
gxr 2018-11-20
yaasshole 2018-10-08
Allenyhy 2017-11-04
Hhjian 2017-08-16
81497307 2016-12-04
fayeyang 2016-10-31
卧斋 2016-06-17
cithegod 2016-01-19
卡奇莫多 2015-12-28
msyndra 2015-12-22
Gcalolin 2019-06-27
卧斋 2015-06-16
lkj0 2015-05-10
87493063 2015-04-22