FullCalendar only supports change of a few options after initialization, like height, contentHeight and aspectRatio. If you want to change other options, you should destroy the current calendar, and initialize FullCalendar again with the new options.
You might want to remember the current state, so you can recreate it after the calendar has been destroyed. Include this callback in your FullCalendar options, and save the view in some variable that you can access after the calendar has been destroyed:
viewDisplay: function(view) {
latestView = view;
}
Then you can call these methods after the calendar has been reinitialized, and recreate the state the calendar was in (like the same view and date range):
$("#calendar").fullCalendar('changeView', latestView.name);
$("#calendar").fullCalendar('gotoDate', latestView.start);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…