📜  数据表获取订单列 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:07.245000             🧑  作者: Mango

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

var order = table.order();
alert( 'Table is ordered by column: ' + order[0][0] + ', direction:' + order[0][1]);

var title = table.column(order[0][0]).header();
alert( 'Ordering column title: ' + $(title).html() );