범주와 날짜가있는 Datatable이 있습니다. 내가 날짜순으로 정렬 할 때 그것은 단지 정반대로 정렬되는 것처럼 보입니다 (그림 참조). 에서DataTable 정렬 문제
jQuery('#tstable').dataTable({
"columnDefs": [
{"width": "20%", "orderData": [ 1, 0 ], "targets": 0},
{"width": "11%", "targets": 1},
{"width": "12%", "orderData": [ 1, 2], "targets": 2},
{"width": "10%", "orderData": [ 1, 3], "targets": 3},
{"width": "12%", "orderData": [ 1, 4], "targets": 4},
{"width": "40%", "orderData": [ 1, 5], "targets": 5},
{"sType": "date", "targets": 3},
{"width": "0", "targets": 6, "visible": false}
],
"aaSorting": [[6, "desc"]],
"bPaginate": true,
"bFilter": true,
"aoColumns": [
null,
null,
null,
null,
null,
null,
null
]
});
결과 다음과 같은 정렬 : 여기 내 초기화에 날짜 정렬 오름차순하지 않는 이유
사람이 지적 할 수 있습니까?
한번보세요 https://datatables.net/blog/2014-12-18 –