我想使用JQuery fullcalendar插件(版本1.5.2)显示事件。提供给这个插件的JSON数据是:fullcalendar事件开始时间
[{"start":"2011-10-10","end":"2011-10-11","title":"Electric Picnic","allDay":true},
{"start":"2011-10-10","end":"2011-10-11","title":"Oxeygen","allDay":true}]
我已经设置阿迪为真,但显示的事件时,他们看起来就像他们在开始在2011-10-10早上6时左右。
我也试着使用UNIX时间戳的日期格式,而不是,但它并没有任何区别。我怎样才能让事件看起来好像他们持续了整整两天。
我fullcalendar代码很简单:
$(document).ready(function() {
$('#calendar').fullCalendar({
events: [{"start":"2011-10-10","end":"2011-10-11","title":"Electric Picnic","allDay":true}, {"start":"2011-10-10","end":"2011-10-11","title":"Oxeygen","allDay":true}],
// Make the first day of each week a monday
firstDay: 1,
weekMode: 'variable',
header: {
left: '',
center: 'title',
right: 'today prev,next'
}
});
});
使用这个插件才能正常显示阿迪事件有人Here's an example,但目前还不清楚什么是他们的代码/数据和我的不同。
您可以通过下载this archive,解压缩,然后打开calendar.htm
[档案的链接向我发送404] Works,对不起。 – Lapple
@Lapple有时候它有效,有时它不会,所以你对这两方面都是正确的。如果您点击几次,它通常会同意最终下载。 –