Home  >  Article  >  Web Front-end  >  Regular table multi-header query example_javascript skills

Regular table multi-header query example_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:58:451202browse
复制代码 代码如下:

//清空表格
$("#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);
}
}
});
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn