有一种方法可以Year -> Month -> Day
按"order": [[ 0, "asc" ]],
排序日期Year -> Month -> Day
它工作得很好但我怎么能这样做var lead_birth_dt = $('#lead-birthday-table').DataTable({
processing: true,
language: {
processing: '<div class="loading-chart" style="background: #ececec00l; margin-bottom: 10px;"><img src="{{asset('assets/images/chart-loading.webp')}}"></div>',
},
serverSide: true,
select: true,
responsive: true,
"order": [[ 0, "asc" ]],
ajax: '{{ url("/date") }}',
columns: [
{ data: 'birthdate', name: 'birthdate', className: 'text-center',
render: function(data){
return ( moment(data, 'DD/MM/YYYY').format('ll') );
},
},
],
});
this.matIconRegistry.addSvgIcon(
"icon1",
this.domSanitizer.bypassSecurityTrustResourceUrl("../assets/images/icon1.svg")
);
this.matIconRegistry.addSvgIcon(
"icon2",
this.domSanitizer.bypassSecurityTrustResourceUrl("../assets/images/icon2.svg")
);