Posted in Javascript onFebruary 21, 2014
//清空表格 $("#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); } } });
常规表格多表头查询示例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@