当前时间设置之getDate

优质
小牛编辑
123浏览
2023-12-01

返回当前日期:

.fullCalendar('getDate')

点击按钮显示当前时间的例子:

$('#my-button').click(function() {
    var d = $('#calendar').fullCalendar('getDate');
    alert("The current date of the calendar is " + d);
});

官方英文文档:http://arshaw.com/fullcalendar/docs/current_date/getDate/