jquery fullcalendar没有显示时间json数据

时间:2013-09-14 14:30:13

标签: jquery fullcalendar

这是从PHP代码生成的json数据,但我无法看到时间ex。对于会议活动时间,我对此非常陌生,如果有人能给我解决方案将是一个很大的帮助。

[{"title":"All Day Event","start":"2013-09-01T00:00:00+04:00","allDay":"true"},{"title":"Long Event","start":"2013-09-09T00:00:00+04:00","end":"2013-09-12T00:00:00+04:00","allDay":"true"},{"id":"999","title":"Repeating Event","start":"2013-09-11T16:00:00+04:00","allDay":"false"},{"id":"999","title":"Repeating Event","start":"2013-09-18T16:00:00+04:00","allDay":"false"},{"title":"Meeting","start":"2013-09-14T10:30:00+04:00","allDay":"false"},{"title":"Lunch","start":"2013-09-14T12:00:00+04:00","end":"2013-09-14T14:00:00+04:00","allDay":"false"},{"title":"Birthday Party","start":"2013-09-15T19:00:00+04:00","end":"2013-09-15T22:30:00+04:00","allDay":"false"},{"title":"Click for Google","start":"2013-09-29T00:00:00+04:00","url":"http:\/\/google.com\/","allDay":"false"}]

1 个答案:

答案 0 :(得分:1)

我认为问题是因为你将allDay选项包装为字符串,它必须是布尔值。

参考:http://arshaw.com/fullcalendar/docs/event_data/Event_Object/

来自docs:

  

请勿在true / false附近加上引号。这个值不是   串!

修正了演示:http://jsfiddle.net/IrvinDominin/HbbfK/