Jquery 如何将当前日期(今天)设置为FullCalendar上的默认日期?

Jquery 如何将当前日期(今天)设置为FullCalendar上的默认日期?,jquery,Jquery,现在默认日期是2017-12-12 $(document).ready(function() { $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay,listWeek' }, defaultDate: '2017-12-

现在默认日期是2017-12-12

$(document).ready(function() {

    $('#calendar').fullCalendar({
      header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,agendaWeek,agendaDay,listWeek'
      },


      defaultDate: '2017-12-12',
      navLinks: true, // can click day/week names to navigate views
      businessHours: true, // display business hours
      editable: true,
      eventLimit: true, // allow "more" link when too many events

在此脚本中,您可以直接将今天设置为默认值

$("#calendar").datepicker().datepicker("setDate", new Date());

在此脚本中,您可以直接将今天设置为默认值

$("#calendar").datepicker().datepicker("setDate", new Date());


这不是日期选择器,它是fullcalendar。这不是日期选择器,它是fullcalendar。
$('#calendar').fullCalendar({
    defaultDate: moment('2014-09-01'),
    ...
});