也就是说取到的数据放到tbody里面,用jquery+ajax应该怎么实现
http://topic.csdn.net/u/20100925/15/728f3ca2-8cf6-457b-91d6-e2e67b026b1c.html的简单实现
<body>
<div class="topnav">
<p>
<span ><a href="#" class="one"> 首页</a></span> <span ><a href="#" class="two">事件</a></span> </p>
</div>
<div class="content">
<div class="contentbox shiyonglv">
<div class="contentbox_title">使用率</div>
<div>
<table width="100%">
<thead>
<tr class="contentbox_title" >
<th>主机</th><th>CPU使用率</th><th>内存使用率</th><th>状态</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div></div>
</body>
http://topic.csdn.net/u/20100925/15/728f3ca2-8cf6-457b-91d6-e2e67b026b1c.html的简单实现
<body>
<div class="topnav">
<p>
<span ><a href="#" class="one"> 首页</a></span> <span ><a href="#" class="two">事件</a></span> </p>
</div>
<div class="content">
<div class="contentbox shiyonglv">
<div class="contentbox_title">使用率</div>
<div>
<table width="100%">
<thead>
<tr class="contentbox_title" >
<th>主机</th><th>CPU使用率</th><th>内存使用率</th><th>状态</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div></div>
</body>
$.post('getData.do',{},function(result) {
$('td1').html(result.a);
$('td2').html(result.b);
});