2

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

[{"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"}]
4

1 回答 1

1

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

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

来自文档:

不要在你的真/假周围加上引号。该值不是字符串!

固定演示:http: //jsfiddle.net/IrvinDominin/HbbfK/

于 2013-09-14T14:47:47.870 回答