我打算使用数据表从 mysql 表中检索我的所有用户数据并显示它们。我正在使用他们的服务器端处理代码来检索所有数据。我有一个要求,其中某些需要插入自定义值的附加列。
$('#data').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "userlist.php"
} );
在服务器端处理中,
$aColumns = array('col1', 'col2', 'col3');
要显示的实际列,
<th>col1</th>
<th>col2</th>
<th>col3</th>
<th>col4</th>
其中 col4 包含一个示例代码,例如,
<a href='del.php?userid=col1value></a>
我怎样才能做到这一点?
参考:http ://datatables.net/examples/server_side/server_side.html