0
我想仅使用数据表插件来排序当前页面。有没有办法做到这一点?使用数据表插件的当前页面明智排序
的javascript ODE:
$('#announcementListing-data').DataTable({
pageLength: 5,
"columnDefs": [ {
"targets" : 'no-sort',
"orderable": false,
"order": []
}],
"language": {
"lengthMenu": "Display _MENU_ records per page",
"zeroRecords": "Nothing found - sorry",
"info": "_PAGE_ of _PAGES_",
"infoEmpty": "No records available",
"infoFiltered": "(filtered from _MAX_ total records)"
}
});
检查此URL:http://stackoverflow.com/questions/27437983/how-to-sort-only-the-current-page-using-jquery-datatable –