In the documentation of arshaw's full calendar, I found the method I think, I need to use: .fullCalendar( 'refetchEvents' )
but since I'm totally unfamiliar with JavaScript, I don't have a plan on how to use this function.
I'd like to know a simple way to make the calendar reload the events from the event sources and rerender them periodically (eg every 30 seconds).
Any hints will be highly appreciated.
只需使用setInterval函数: http : //www.w3schools.com/jsref/met_win_setinterval.asp
setInterval(function(){$('#yourCalendar').fullCalendar('refetchEvents')}, 30000);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.