1

ajax ページネーションにデータテーブル プラグインを使用しようとしています。最初のデータセットをロードしますが、ページネーションは機能しません。誰かが私にdatatable ajax paginationの良い例を教えてください。表示する行数を設定する方法も知る必要があります。

ありがとうございます。

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 に答える