我使用的是 v1.10.6,当我更改数据表容器的显示时,所有行都折叠起来。我尝试使用:
oTable.responsive.recalc();
Run Code Online (Sandbox Code Playgroud)
和:
oTable.columns.adjust().responsive.recalc();
Run Code Online (Sandbox Code Playgroud)
我也试过:
$($.fn.dataTable.tables(true)).DataTable().responsive.recalc();
Run Code Online (Sandbox Code Playgroud)
但它删除了表格的响应功能。