📅  最后修改于: 2022-03-11 14:57:09.028000             🧑  作者: Mango
$('#dispatch_modal').on('shown.bs.modal', function() {
$('input:text:visible:first').focus();
// prepare datepicker
$('.form_datepicker').daterangepicker({
singleDatePicker: true,
showDropdowns: true,
parentEl: '#dispatch_modal'
});
});