日期:2014-05-16 浏览次数:20309 次
$.each(json.rows, function(i,item){
var td0="<td>"+ item.code +"</td>";
var td1="<td>"+ item.addr +"</td>";
});
var ta_field=[{"tbody":"code"},{"tbody":"addr"}];
var td0=""
$.each(json.rows, function(i,item){
$.each(ta_field, function(j,tbody){
var aaa=tbody.thead;
td0=td0+"<td>"+ item.aaa +"</td>";
});
});
var ta_field = [{ "tbody": "code" }, { "tbody": "addr"}];
var td0 = ""
$.each(json.rows, function (i, item) {
$.each(ta_field, function (j, tbody) {
var aaa = tbody.tbody;//////////
td0 = td0 + "<td>" + item[aaa] + "</td>";
});
});