复制代码 代码如下:
//清空表格
$("#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);
}
}
});
//清空表格
$("#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);
}
}
});
标签:
表格,多表头,查询
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“常规表格多表头查询示例”评论...