function initDatebox () {
$(’#startTime’).datebox().datebox(‘calendar’).calendar({
validator: function(date){
var thisDate = new Date(); //今天
var d2 = new Date(thisDate.getFullYear()-1, thisDate.getMonth(), thisDate.getDate());
return date <= thisDate && date >= d2; //&& date<=d2;
}
});
}
版权声明:本文为qq_41092126原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。