我一直在研究一个Web应用程序,它需要一个日历来显示事件以及关于它们的信息。我一直在使用full calendar API来为我处理日历。但是,无论何时我有一个跨越多天的活动,日历都不会在每一天呈现活动。它只会在第一天显示该事件,然后在下一个星期日显示,这对我没有意义。我知道整个日历支持这个,因为我在他们的网站上看到了它的一个例子,但我不知道我做错了什么。全日历活动不跨越多天
这是我如何初始化日历和插入事件
$(document).ready(function(){
//initialize calendar
$('#calendar').fullCalendar({
//options and callbacks
// your event source
eventSources: [
{
events: [ // put the array in the `events` property
{
title : 'event1',
start : '2016-01-15T23:59',
end : '2016-01-21T00:01',
isMultipleDay: true
}
],
color: 'blue', // an option!
textColor: 'yellow', // an option!
nextDayThreshold: "00:01"
}
// any other event sources...
]
});
});
你能提供的链接,你看到 – jkris
这是一个工作示例http://fullcalendar.io/ – bCubed
你在哪里得到'isMultipleDay'选项的例子吗?我没有看到它在文档中 – jkris