模仿的,运行不出来,帮忙看一下代码?谢谢
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
<title>挑战题</title>
<style>
table{border:1px solid #ccc;
padding:5px;}
</style>
</head>
<body>
<input id="btntest" type="button" value="获取">
<table>
<tr>
<th>座号</th>
<th>姓名</th>
<th>分数</th>
</tr>
<tbody>
<tr>
<td colspan="3"></td>
</tr>
</tbody>
</table>
<script>
var jsonStu=[{'num':'01','name':"小明",'score':'60'},
{'num':'02','name':"小花",'score':'65'},
{'num':'03','name':"小乖",'score':'70'},
{'num':'04','name':"学霸",'score':'100'}];
$("#btntest").bind("click",function(){
$.each("jsonStu",function(index,Stu){
$("tbody").append("<tr><td>"+Stu.num+"</td><td>"+Stu.name+"</td><td>"+Stu.score+"</td></tr>")
})
})
</script>
</body>
</html>