我有一个问题,每天只有一个事件显示。
我的初始化代码是:
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: false,
events: "/cal/get",
loading: function(bool) {
if (bool) $('#loading').show();
else $('#loading').hide();
}
});
和我的json代码是:
[{"id":"11","title":"2053","start":"2011-12-23T11:00:00","end":"2011-12-23T12:05:00","allDay":false},{"id":"13","title":"2057","start":"2011-12-17T23:00:00","end":"2011-12-18T0:05:00","allDay":false},{"id":"9","title":"2060","start":"2011-12-17T20:45:00","end":"2011-12-17T21:45:00","allDay":false},{"id":"15","title":"2059","start":"2011-12-17T2:00:00","end":"2011-12-17T3:30:00","allDay":false},{"id":"14","title":"2058","start":"2011-12-17T1:30:00","end":"2011-12-17T3:30:00","allDay":false},{"id":"12","title":"2052","start":"2011-12-16T15:15:00","end":"2011-12-16T16:15:00","allDay":false},{"id":"8","title":"2056","start":"2011-12-07T9:45:00","end":"2011-12-07T10:30:00","allDay":false}]
但是我每天得到的只是一件事。我已经通读了文档和答案,但仍然无法得出结论。
事件的时间戳不正确。
以十二月十七日为例。
{"id":"9","title":"2060","start":"2011-12-17T20:45:00","end":"2011-12-17T21:45:00","allDay":false},
{"id":"15","title":"2059","start":"2011-12-17T2:00:00","end":"2011-12-17T3:30:00","allDay":false},
{"id":"14","title":"2058","start":"2011-12-17T1:30:00","end":"2011-12-17T3:30:00","allDay":false},
2:00:00
不是一个有效的时间戳,如果你指的是凌晨2点,它需要有一个前导0,或者如果你指的是下午2点,它需要是14:00:00
。
结束时间也一样,3:30:00必须是03:30:00或15:30:00。