jquery datatables row count across pages

前端 未结 5 2013
礼貌的吻别
礼貌的吻别 2021-02-18 13:50

I\'m using the jQuery DataTables plug-in for my HTML table.

Is there a way to get the row count of the number of rows in my table across pages.

For example, if I

5条回答
  •  生来不讨喜
    2021-02-18 14:20

    In the JSON response of your datatable ajax call, we get 'iTotalDisplayRecords' as one of the property of that response JSON object. You can directly use the value of 'iTotalDisplayRecords' as number of records in your Data Table.

提交回复
热议问题