【发布时间】:2011-03-06 14:25:01
【问题描述】:
我在使用 FullCalendar 时遇到问题,它不显示我的活动。我知道事件数据的格式可能有误,但我看不出应该是什么格式。
下面的代码是我的代码的简化版:
jQuery('#cal').fullCalendar({
defaultView: 'agendaDay',
axisFormat: 'H', //,'h(:mm)tt',
timeFormat: {
agenda: 'H' //h:mm{ - h:mm}'
},
firstHour: 18,
eventSources:
[{"id":64,"title":"TestUser","start":"2011-03-08T02:00:00.0000000","end":"2011-03-08T04:00:00.0000000","allDay":false},{"id":65,"title":"TestUser","start":"2011-03-07T10:00:00.0000000","end":"2011-03-07T12:00:00.0000000","allDay":false}]
,
eventClick: function (calEvent, jsEvent, view) {
jQuery('#divEventTitle').html(calEvent.title);
showEvent(calEvent);
jQuery('#divEvent').dialog();
},
theme: true,
header: false,
height: 450
});
【问题讨论】:
标签: jquery asp.net-mvc fullcalendar