fullcalendar重新渲染

uiCalendarConfig.calendars.lesson_calendar.fullCalendar('removeEvents');
var ym = uiCalendarConfig.calendars.lesson_calendar.fullCalendar('getView').title;
$scope.get_lesson(ym.split('年')[0],ym.split('年')[1].split('月')[0]);
uiCalendarConfig.calendars.lesson_calendar.fullCalendar('getEventSources');

或者,第二種需要直接在fullCalendar的events屬性中push

uiCalendarConfig.calendars.lesson_calendar.fullCalendar('refetchEvents');
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章