我正在使用 fullcalendar 插件来创建调度网络应用程序。我在标题中添加了一个自定义按钮,以便将房间添加到资源中。这些资源确实会被添加,但如果页面被刷新,它们会被删除。有谁知道为什么会这样?
这是我为向资源添加新房间而添加的代码。
customButtons: {
promptResource: {
text: '+ room',
click: function() {
var title = prompt('Room name');
if (title) {
$('#calendar').fullCalendar('addResource', { title: title }, true );
}
}
}
},