我正在使用FullCalendar
插件来显示很多事件。似乎有时这些事件会像下图一样相互叠加……有人知道如何预防吗?
http://imageshack.us/photo/f/707/bugqp.png/
饲料:
events: [
{
title: 'One event',
start: new Date(y, m, d, 0, 30),
end: new Date(y, m, d, 2, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 0, 30),
end: new Date(y, m, d, 2, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 30),
end: new Date(y, m, d, 4, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 30),
end: new Date(y, m, d, 4, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 30),
end: new Date(y, m, d, 4, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 1, 00),
end: new Date(y, m, d, 3, 00),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 1, 30),
end: new Date(y, m, d, 3, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 50),
end: new Date(y, m, d, 4, 50),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 4, 30),
end: new Date(y, m, d, 6, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 00),
end: new Date(y, m, d, 4, 00),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 50),
end: new Date(y, m, d, 4, 50),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 50),
end: new Date(y, m, d, 4, 50),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 4, 00),
end: new Date(y, m, d, 6, 00),
allDay: false
}
]