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 –