【发布时间】:2010-06-24 06:33:47
【问题描述】:
我想显示来自 DB 的输入数据...我对使用 jquery dataTable 很感兴趣... 我一直在输入一些代码,但它似乎不是我想要的......我放在标签内。 而且表头不显示..太丑了..
<table cellpadding="0" cellspacing="0" border="0" class="display" id="datalist">
<thead>
<tr>
<th>Line </th>
<th>Model </th>
<th>Serial Number </th>
<th>NIK </th>
<tr>
<thead>
<tbody>
</tbody>
</table>
<script>
var oTable;
$(document).ready(function(){
oTable= $('#datalist').dataTable( {
"bServerSide": true,
"bProcessing": true,
"sAjaxSource": 'process1.php',
"aaSorting" : [[1, "desc"]],
"aoColumns" : [
/*Line*/ null,
/*Model*/ null,
/*Serial Number*/ null,
/*NIK*/ null
]
} );
});
</script>
我必须做什么?请帮忙..
【问题讨论】: