📅  最后修改于: 2022-03-11 14:58:23.747000             🧑  作者: Mango
bootstrap datepicker
//newer
In JavaScript, set the datepicker's assumeNearbyYear attribute to true, like this:
$("#dp").datepicker({
assumeNearbyYear: true
});
//ver 1.4
$(this).datepicker({
dateFormat: 'dd-mm-yy',
prevText: '',
nextText: '',
minDate: "01-01-2021",
maxDate: "01-12-2090"
});