📅  最后修改于: 2022-03-11 14:57:48.842000             🧑  作者: Mango
$('#drop_time, #pickup_time').bootstrapMaterialDatePicker({
minDate: moment(),
format: 'YYYY-MM-DD HH:mm'
});
$('#drop_time').on('change', function (selected) {
const minDate = moment($(selected.target).val());
$('#pickup_time').bootstrapMaterialDatePicker('setMinDate', minDate);
});