我试图重新加载我的事件数据(JSON)当viewDisplay函数被调用时,不确定我如何调用它吗?
$('#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
}
}
您可以使用refetchEvents()函数:
http://arshaw.com/fullcalendar/docs/event_data/refetchEvents/