use*_*892 13 jquery datatables
我jquery在我的应用程序中使用数据表.我有一个问题pagination,它在我使用时重置 this.table.dataTable().fnDraw().
fnDraw()在更新表时,我的数据表每5秒钟调用一次.当this.table.dataTable().fnDraw()显示第一页时,即使用户在第2页或其他页面上,也会显示.
是否有办法保持分页状态this.table.dataTable().fnDraw().
DKS*_*San 19
在http://datatables.net/ref上的解释fnDraw说:
Parameter: fnDraw
Type: function
Inputs: {bool} [default=true]: Re-filter and resort
(if enabled) the table before the draw.
Run Code Online (Sandbox Code Playgroud)
所以,只是尝试过this.table.dataTable().fnDraw(false),它的工作原理.住在同一页面上,排序保持不变.
| 归档时间: |
|
| 查看次数: |
13039 次 |
| 最近记录: |