我正在使用FullCalendar,尝试通过在窗口大小低于某个值时更改视图使其具有响应性:
windowResize : function(view) {
if ($(window).width() < 500) {
$('#calendar').fullCalendar('changeView', 'basicDay');
} else {
$('#calendar').fullCalendar('changeView', 'month');
}
// modify the header (remove options for month and week and remove title)
}
那样可以,但是我该如何修改标题(删除月份和周的选项以及删除标题)?你可以在这里看到日历的一个例子: 这里。
头部设置如下:
$('#calendar').fullCalendar({
header : {
left : 'prev,next today',
center : 'title',
right : 'month,basicWeek,basicDay'
}
});