📅  最后修改于: 2022-03-11 14:58:57.802000             🧑  作者: Mango
$('.date_range_picker').daterangepicker({
autoUpdateInput: false,
locale: {
format: 'DD/MM/YYYY',
cancelLabel: 'Clear'
}
});
$('.date_range_picker').on('apply.daterangepicker', function(ev, picker) {
$(this).val(picker.startDate.format('MM/DD/YYYY') + ' - ' + picker.endDate.format('MM/DD/YYYY'));
});