常规表格多表头查询
//清空表格
$("#studentTab").empty();
$.ajax({
type:"POST",
url:"../../student.action",
dataType:"json",
data:{
"stuNo":stuNo
},
success:function(data){
var str;
for(var i=0;i<data.items[i].length;i++)
{
str = "<tr>" + "<td>" + data.items[i].stuNo + "</td>"
+ "<td>" + data.items[i].stuName + "</td>"
+ "<td>" + data.items[i].stuAge + "</td>"
+ "<td>" + data.items[i].stuSex + "</td>"
+ "<td>" + data.items[i].stuAddr + "</td>"
+ "<td>" + data.items[i].stuPhone + "</td>"
+ "<td>" + data.items[i].stuAge + "</td>" +
"</tr>";
$("#studentTab").append(str);
}
}
});