我需要将一些过滤数据(来自条件)添加到jquery数据表中。怎么可能?
答案 0 :(得分:0)
$('#table_items').dataTable({
"aaSorting": [[ 5, "desc" ]],
"bPaginate": false,
"bFilter": false,
"bInfo": false
});
'#table_items' - the id of your table
"aaSorting": [[ 5, "desc" ]] - here 5 is the number of column for default sorting
All columns will be sortable automatically