我正在使用Datatables结合server_processing获取数据,主要问题是我不想在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"
} );