Fullcalendar从当前月份和下个月开始查看

Fullcalender start with current month and next month in view

本文关键字:下个月 开始 Fullcalendar      更新时间:2023-09-26

我有fullcalendar,它从2015 Jan开始,我想启动并显示为当前月和下个月的默认值。

请建议-我有以下代码

$('#calendar').fullCalendar({
     theme: true,
     //now:  gotoDate(CurrentDate),//'2015-08-07',
     editable: true,
     aspectRatio: 2.1,
     scrollTime: '00:00',
     selectable: true,
     selectHelper: true,

http://fullcalendar.io/docs/current_date/defaultDate/

您是否尝试指定defaultDate?

是的,我已经尝试了defaultDate,它不会工作

我已经有这个了

defaultView:"timelineYear",视图:{时间线日期:{buttonText:':10个插槽',slot持续时间:"00:15"},时间线TenDay:{类型:"timeline",持续时间:{天:10}}},

并且需要查看本月和下个月的