📌  相关文章
📜  datetimepicker 如何仅显示当前 motnh - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:14.551000             🧑  作者: Mango

代码示例1
// temp vars used below
var currentTime = new Date() 
var minDate = new Date(currentTime.getFullYear(), currentTime.getMonth(), +1); //one day next before month
var maxDate =  new Date(currentTime.getFullYear(), currentTime.getMonth() +2, +0); // one day before next month
$( "#datepicker" ).datepicker({ 
minDate: minDate, 
maxDate: maxDate 
});