我正在尝试启用特定列排序。
有什么方法可以使特定列可排序吗?
drawingsColumnDefs = [ { "bSearchable": true, "bVisible": true, "sDefaultContent": "n/a", "aTargets": [ 0, 1, 2, 3, 4 ] }, { "bSortable": false, "bSearchable": false, "bVisible": true, "aTargets": [ 5, 6 ] }, { "sClass": "txtCentered", "aTargets": [ 1, 2 ] }, { "sWidth": "230px", "aTargets": [ 0, 4 ] } ]
和
$('#tableID').dataTable({"aoColumnDefs": columnDefinitions})