我在刷新数据表上的数据时遇到麻烦。由于大量数据,我正在使用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)