$('#calendar').datepicker({
inline: true,
beforeShowDay: function(date) {
var currentDay = date.getDate(); //how to get current Day
return [true, "css"];
}
});
答案 0 :(得分:1)
将当前日期设为默认日期:
$("#calendar").datepicker().datepicker("setDate", new Date());