我也需要同样的功能。我将回购分叉到
https://github.com/dtmonterrey/fullcalendar https://github.com/dtmonterrey/fullcalendar
并实施了一个适合我的解决方案。它适用于单个 BusinessHours 定义或一组 BusinessHours 定义(如您尝试的示例)。
Example:
businessHours:[
{
start: '09:00',
end: '13:00',
dow: [1, 2]
},
{
start: '14:00',
end: '16:00',
dow: [1, 2]
},
{
start: '10:00',
end: '19:00',
dow: [4]
},
{
start: '06:00',
end: '10:30',
dow: [6]
},
{
start: '13:00',
end: '17:00',
dow: [6]
},
{
start: '20:00',
end: '23:00',
dow: [6]
}
]
我已经创建了一个拉取请求。欢迎提出建议。
示例和演示
我无法让 jsfiddle 工作,所以演示
http://jsfiddle.net/t7aczbdt/ http://jsfiddle.net/t7aczbdt/
is here
http://eo14.com/static/fullcalendar/ http://eo14.com/static/fullcalendar/
你可以在你的电脑上尝试一下:解压这个http://eo14.com/static/fullcalendar.zip http://eo14.com/static/fullcalendar.zip并用浏览器打开。