📜  数据表动态隐藏列 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:05.084000             🧑  作者: Mango

代码示例1
const table = $('#example').DataTable();

// Get the column API object
const column = table.column( 2 ); // gets 2nd column (0-indexed)
 
// Toggle the visibility
column.visible( ! column.visible() ); // true or false