如何清除客户端的服务器端数据tables table行

How do i clear the server-side datatables table rows in client-side

我尝试在客户端清除服务器端数据tables table.fnClearTable(); 我也使用过 table.clear().draw(); 但我没有取得任何成功,任何人都可以帮助我使用服务器端数据 tables。 我还想按其中一列中显示的日期过滤 table 内容。

很高兴得到你的帮助。

您可以使用

刷新 table
$('#table_id').DataTable().ajax.reload();

动态刷新的函数