Insert event dynamically to Fullcalendar using Jquery

前提是你 提交于 2019-12-03 14:42:47

Try this:

var newEvent = new Object();

newEvent.title = "some text";
newEvent.start = new Date();
newEvent.allDay = false;
$('#calendar').fullCalendar( 'renderEvent', newEvent );

Note that when you assign value to start it needs to be in one of the supported formats.

You may specify a string in IETF format (ex: Wed, 18 Oct 2009 13:00:00 EST), a string in ISO8601 format (ex: 2009-11-05T13:15:30Z) or a UNIX timestamp.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!