小编Mik*_*ike的帖子

刷新正在使用管道功能的jQuery dataTable

我在刷新数据表上的数据时遇到麻烦。由于大量数据,我正在使用datatable中的datatable管道示例。但是我找不到在修改数据后(使用引导对话框中的表格)强制刷新的方法。

如何强制更新管道?

没有管道,oTable.api().ajax.reload()完美地工作。但是我不明白如何使用这里的功能来做到这一点:

// Pipelining function for DataTables. To be used to the 'ajax' option of DataTables

$.fn.dataTable.pipeline = function ( opts ) {
    // Configuration options
    var conf = $.extend( {
        pages: 5,     // number of pages to cache
        url: '',      // script url
        data: null,   // function or object with parameters to send to the server
                      // matching how `ajax.data` works in DataTables
        method: 'GET' // Ajax HTTP method
    }, opts );

    // Private …
Run Code Online (Sandbox Code Playgroud)

datatable jquery pipeline

3
推荐指数
1
解决办法
2485
查看次数

标签 统计

datatable ×1

jquery ×1

pipeline ×1