使用datatable插件的Ajax分页


ajax pagination using datatable plugin

我正在尝试使用ajax分页的datatable插件。它加载了第一组数据,但分页不起作用。有人可以给我一个很好的例子,数据ajax分页?

我需要知道如何设置行数显示以及

您需要创建一个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/