Fullcalendar 完整日历标题以匹配周
我正在使用Fullcalendar 完整日历标题以匹配周,fullcalendar,Fullcalendar,我正在使用fullcalendar,我将日历配置为不包括周末: $('#calendar').fullCalendar({ weekends: false, 但是,标题标题属性显示从星期日到星期六的日期。是否有办法更改标题,使日期范围也不包括周末 找到了这个。我刚刚用最新的fullcalendar 2.9.1进行了测试,它可以正常工作。您必须将该函数与fullcalendar.js在线8091中的函数交换 computeTitle: function () { var
fullcalendar
,我将日历配置为不包括周末:
$('#calendar').fullCalendar({
weekends: false,
但是,标题
标题
属性显示从星期日到星期六的日期。是否有办法更改标题,使日期范围也不包括周末 找到了这个。我刚刚用最新的fullcalendar 2.9.1进行了测试,它可以正常工作。您必须将该函数与fullcalendar.js在线8091
中的函数交换
computeTitle: function () {
var startDate, endDate;
if (this.intervalUnit == 'month') {
startDate = this.intervalStart;
endDate = this.intervalEnd;
}
else {
startDate = this.start;
endDate = this.end;
}
return this.formatRange(
{ start: startDate, end: endDate },
this.opt('titleFormat') || this.computeTitleFormat(),
this.opt('titleRangeSeparator')
);
}