我正在嘗試使用營業時間選項,但無法反映這些更改。全日曆營業時間
我想顯示多個營業時間
這裏是代碼;
$('#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