Javascript 两个时间范围之间的完整日历显示事件

Javascript 两个时间范围之间的完整日历显示事件,javascript,fullcalendar,fullcalendar-scheduler,Javascript,Fullcalendar,Fullcalendar Scheduler,我使用的是fullCalendar 3.4,我有两个自定义按钮night,night,如下所示: calendar.fullCalendar({ locale: 'en', now: calendar.fullCalendar('today'), editable: false, customButtons: { evening: {

我使用的是fullCalendar 3.4,我有两个自定义按钮
night
night
,如下所示:

calendar.fullCalendar({
            locale: 'en',
            now: calendar.fullCalendar('today'),
            editable: false,
            customButtons: {
                evening: {
                    text: 'This evening'
                },
                night: {
                    text: 'Tonight'
                },
                tomorrow: {
                    text: 'Tomorrow',
                    click: function() {
                        calendar.fullCalendar( 'gotoDate', moment(new Date()).add(1,'days'));
                        inputDate.attr("placeholder", calendar.fullCalendar('getDate').format('DD MMMM YYYY'));
                    }
                }
            }
        });
我设法显示了明天的事件,但无法通过使用一个时间范围(例如,与
tommorow
相同,但时间在12:00到16:00之间)以及
night
时间在19:00到00:00之间)来显示
night
事件

提前谢谢你

通过使用。有点难看,但很管用

$(函数(){
$(“#日历”).fullCalendar({
defaultView:“议程”,
现在:$('日历').fullCalendar('今天'),
可编辑:false,
标题:{
左:“上一天,下一整天,晚上,晚上”,
中心:'标题',
右图:“月,agendaWeek,agendaDay”
},
自定义按钮:{
全天:{
文字:“全天”,
单击:函数(){
重置白天();
}
},
晚上:{
文字:“今晚”,
单击:函数(){
重置白天();
$('#calendar').fullCalendar('option','minTime','12:00:00');
$(“#calendar”).fullCalendar('option','maxTime','16:00:00');
}
},
晚上:{
文字:“今晚”,
单击:函数(){
重置白天();
$(“#calendar”).fullCalendar('option','minTime','19:00:00');
$(“#calendar”).fullCalendar('option','maxTime','24:00:00');
}
}
}
});
//返回到今天并重置可用的时间段。
//如果要显示所选日期的事件,可以删除gotoDate。只需确保按钮文本正确无误。:)
var resetDayer=函数(){
$(“#日历”).fullCalendar('gotoDate',moment(new Date());
$(“#calendar”).fullCalendar('option','minTime','00:00:00');
$(“#calendar”).fullCalendar('option','maxTime','24:00:00');
}
});

这有点奇怪,但我想别无选择。谢谢你,先生。