5

我试图在调用 viewDisplay 函数时重新加载我的事件数据(JSON),但不确定我如何称呼它?

$('#calendar').fullCalendar({

            defaultView: '@Model.ScheduleView',
            editable: true,
            events: '/Schedule/GetSchedule',

            viewDisplay:function (view) {
                if (view.name == "resourceDay") {
//Call refresh of events to fire ('/Schedule/GetSchedule') <---- This line
}
}
4

1 回答 1

8

您可以使用 refetchEvents() 函数:

http://arshaw.com/fullcalendar/docs/event_data/refetchEvents/

于 2013-05-29T20:15:15.540 回答