我正在尝试将议程周刊中的列标题更改为仅显示日期,例如星期一,而不是星期一 5/7。但是,当我尝试进行任何更改时,列标题变为对象对象。这是一个屏幕截图。
我正在使用 FullCalendar 3.4.0 版和 jquery 2.1.1。这是我的代码片段:
$(document).ready(function() {
$('#calendar').fullCalendar({
header: false,
defaultView: "agendaWeek",
defaultDate: '2017-05-12',
views: {
agenda: {
columnFormat: {
month: 'dddd', // Monday, Wednesday, etc
week: 'dddd, MMM dS', // Monday 9/7
day: 'dddd, MMM dS' // Monday 9/7
}
// options apply to agendaWeek and agendaDay views
}
},
navLinks: true, // can click day/week names to navigate views
selectable: true,
selectHelper: true,
select: function(start, end) {
var title = prompt('Event Title:');
var eventData;
if (title) {
eventData = {
title: title,
start: start,
end: end
};
$('#calendar').fullCalendar('renderEvent', eventData, true); // stick? = true
}
$('#calendar').fullCalendar('unselect');
},
editable: true,
eventLimit: true, // allow "more" link when too many events