1

我正在尝试使用数据表插件进行 ajax 分页。它加载了第一组数据,但分页不起作用。有人可以给我一个数据表ajax分页的好例子。我还需要知道如何设置要显示的行数。

先谢谢了。

4

1 回答 1

1

您需要创建一个 AJAX 端点(数据库将从此处填充表)。

以下 JSON 数据应来自数据表。

iTotalRecords – Number of total records in the table, before applying the filters.
iTotalDisplayRecords – Number of records returned after applying the filters.
sEcho – An un-altered copy of the sEcho sent from the client.
aaData – Array of data from the server. 

请在此处阅读: http ://www.sitepoint.com/working-jquery-datatables/

于 2014-06-20T12:16:15.117 回答