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

时间:2015-12-01 08:16:11

标签: javascript calendar

我有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,

2 个答案:

答案 0 :(得分:0)

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

您是否尝试过指定defaultDate?

答案 1 :(得分:0)

是的,我确实尝试过defaultDate,它不会工作

我已经有了这个

defaultView:' timelineYear',                             观点:{                                 timelineDay:{                                     buttonText:':10个插槽',                                     slotDuration:' 00:15'                                 },                                 timelineTenDay:{                                     键入:' timeline',                                     持续时间:{天数:10}                                 }                             },

需要查看当月和下个月