作者:有风吹过best | 来源:互联网 | 2023-01-31 19:13
1> Zakaria Acha..:
工作提琴。
您可以使用:
$.fn.dataTable.ext.search.push(
function(settings, data, dataIndex) {
return $(table.row(dataIndex).node()).hasClass('condition1');
}
);
要过滤表格,然后重置它,只需使用:
$.fn.dataTable.ext.search.pop();
请注意,您应该在两个actios之后重新绘制。
希望这可以帮助。
$.fn.dataTable.ext.search.push(
function(settings, data, dataIndex) {
return $(table.row(dataIndex).node()).hasClass('condition1');
}
);
$.fn.dataTable.ext.search.pop();