我正在按照此答案中的示例进行操作:
How can I create an event based on pattern for calendar?
还是有问题。当我尝试在后台模式下添加渲染事件(添加渲染:“背景”)时,事件不显示。但是,当我删除它时,事件会按原样显示。
这是我的代码:
events.push({
title: schedule[s].title,
color: schedule[s].color,
// we have to clone because the add() call below mutates the date
start: day.clone(),
allday: true,
rendering: 'background'<--putting this line causes error in events rendering. removing it(as per the tutorial) is okay.
});
我该怎么做
最佳答案
那是因为 allday
参数为真。根据文档:
Background events that are timed will only be rendered on the time slots in agenda view. Background events that are all-day will only be rendered in month view or the all-day slots of agenda view.
关于javascript - FullCalendar.io。无法呈现背景事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50522671/