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

Regular table multi-header query example_javascript skills

WBOY
Release: 2016-05-16 16:58:45
Original
1236 people have browsed it
复制代码 代码如下:

//清空表格
$("#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);
}
}
});
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template