一般点击排序时,是先升序后降序
可以通过如下代码修改排序规则
jQuery(function ($) { $(".datatable").dataTable({ "paging": false, "searching": false, "info": false, "orderCellsTop": true, aoColumnDefs: [ { orderSequence: ["desc", "asc"], aTargets: ['_all'] } ] }); });
一般点击排序时,是先升序后降序
可以通过如下代码修改排序规则
jQuery(function ($) { $(".datatable").dataTable({ "paging": false, "searching": false, "info": false, "orderCellsTop": true, aoColumnDefs: [ { orderSequence: ["desc", "asc"], aTargets: ['_all'] } ] }); });