注意class=xxx,這裏利用easyui組件,構建出數據網格
jsp端
<table id="ttt" class="easyui-datagrid" style="width:400px;height:auto;"
toolbar="#tb" rownumbers="true" pagination="true"
>
<thead>
<tr>
<th field="id" width="200">ID</th>
<th field="name" width="200">NAME</th>
</tr>
</thead>
</table>