【发布时间】:2016-07-06 11:18:04
【问题描述】:
我正在使用 FullCalendar,并且我正在将它用于具有不同时间的业务
周一、周二、周三、周五 09:00 - 17:00。
-
星期四是 09:00 - 19:00。
businessHours: { start: '09:00', // a start time (10am in this example) end: '17:00', // an end time (6pm in this example) dow: [ 1, 2, 3, 5] // days of week. an array of zero-based day of week integers (0=Sunday) // (Monday-Thursday in this example) }
http://fullcalendar.io/docs/display/businessHours/
如何做到这一点?
【问题讨论】:
-
您到底想用 Fullcalendar 创建什么?到目前为止你有什么?
-
你试过使用对象数组吗?
-
我只是在玩,看看我能用它做什么。我想知道我是否可以开箱即用。我将玩弄对象数组,甚至制作一个新对象。一分钟到了行尸走肉的时间。谢谢大家。
-
@Blazemonger 这应该是这样做的方法,但目前不支持。实现这一点的最佳方法是使用后台事件。看到这个答案:stackoverflow.com/a/27695472/728393