常规表格多表头查询示例_javascript技巧
来源:动视网
责编:小采
时间:2020-11-27 21:20:04
常规表格多表头查询示例_javascript技巧
常规表格多表头查询示例_javascript技巧: 代码如下: //清空表格 $(#studentTab).empty(); $.ajax({ type:POST, url:../../student.action, dataType:json, data:{ stuNo:stuNo }, success:function(data){ var str; for(var i=0;
导读常规表格多表头查询示例_javascript技巧: 代码如下: //清空表格 $(#studentTab).empty(); $.ajax({ type:POST, url:../../student.action, dataType:json, data:{ stuNo:stuNo }, success:function(data){ var str; for(var i=0;

代码如下:
//清空表格
$("#studentTab").empty();
$.ajax({
type:"POST",
url:"../../student.action",
dataType:"json",
data:{
"stuNo":stuNo
},
success:function(data){
var str;
for(var i=0;i{
str = "" + "" + data.items[i].stuNo + " | "
+ "" + data.items[i].stuName + " | "
+ "" + data.items[i].stuAge + " | "
+ "" + data.items[i].stuSex + " | "
+ "" + data.items[i].stuAddr + " | "
+ "" + data.items[i].stuPhone + " | "
+ "" + data.items[i].stuAge + " | " +
"
";
$("#studentTab").append(str);
}
}
});
常规表格多表头查询示例_javascript技巧
常规表格多表头查询示例_javascript技巧: 代码如下: //清空表格 $(#studentTab).empty(); $.ajax({ type:POST, url:../../student.action, dataType:json, data:{ stuNo:stuNo }, success:function(data){ var str; for(var i=0;