【发布时间】:2011-10-09 17:33:36
【问题描述】:
我正在使用带有 server_processing 的 Datatables 来获取数据,主要问题是我不想在 html (<th width="25" id ="th1">id</th>) 中指定列的名称,我想在通过 ajax 获取数据时动态创建列。
我的代码是:
$('#table').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server_processing.php?db="+pid+"&table="+id+"", //pid is the name of database and id the name of the table
"bJQueryUI": true,
"sPaginationType": "full_numbers"
} );
【问题讨论】:
标签: datatables