我正在尝试使用营业时间选项,但无法反映这些更改。全日历营业时间
我想显示多个营业时间
这里是代码;
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: '2014-11-12',
editable: true,
eventLimit: true, // allow "more" link when too many events
businessHours:
[
{
start: '10:00', // a start time (10am in this example)
end: '12:00', // an end time (12pm in this example)
dow: [ 1,2,3,4 ]
// days of week. an array of zero-based day of week integers (0=Sunday)
// (Monday-Thursday in this example)
},
{
start: '12:00', // a start time (12pm in this example)
end: '18:00', // an end time (6pm in this example)
dow: [ 1,2,3,4 ]
// days of week. an array of zero-based day of week integers (0=Sunday)
// (Monday-Thursday in this example)
}]
});
由于兄弟, 我试图其工作正常,但其不工作的日常(我的意思是移位) SHIFT1上的多个业务时间:8 - > 12 SHIFT2:14 - > 20 VAR businessHours = } {{“start”:'08:00:00','end':'12:00:00','dow':[1,2,3,4] } 14:00:00','end':'20:00:00',“dow”:[1,2,3,4] }]; 其不工作 –
我建议利用后台事件。在文档中检查它们。他们的工作更像事件,但您可以将它们附加到其他事件的功能上。如果没有问题,我会将其添加到我的答案中。 – DoverAudio