我正在效仿这个答案的例子:
How can I create an event based on pattern for calendar?
有一个问题。当我尝试在后台模式下添加渲染事件(添加渲染:'background')时,事件不会显示。但是,当我删除它时,事件显示为。
这是我的代码:
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.
});
我该如何制作
答案 0 :(得分:1)