+ -
当前位置:首页 → 问答吧 → 急急急!!!假如取到的数据放在list里,那么如何放在web(html)的table里呢

急急急!!!假如取到的数据放在list里,那么如何放在web(html)的table里呢

时间:2010-10-08

来源:互联网

也就是说取到的数据放到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">&nbsp;首页</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>

作者: enxiaowei0   发布时间: 2010-10-08

JScript code

  
   $.post('getData.do',{},function(result) {
        
          $('td1').html(result.a);
          $('td2').html(result.b);
    });

作者: ycnanevol   发布时间: 2010-10-08