2016-06-28 96 views

回答

1

你可以使用在这样的情况下,道指属性:

events: [{ 
    title:"My repeating event", 
    start: '10:00', // a start time (10am in this example) 
    end: '14:00', // an end time (6pm in this example) 
    //Days of week. an array of zero-based day of week integers (0=Sunday) 
    dow: [ 1, 4 ] // Repeat monday and thursday 
}], 

slicedToad的answer充分说明了这一点。

或者,您可以使用像在克里斯托弗拉米雷斯的answer功能。

在我目前正在处理的应用程序中,我们正在生成重复事件,但在将它们传递到日历之前正在执行服务器端。

0

是的,他们需要创建为具有相同事件ID的单独事件。在fullCalendar中没有其他支持重复发生的事件。您可以通过编程的方式来完成,例如如果您的活动有某个您定义的标志,例如标志:“REPEAT2”,那么你的脚本会创建几个其他事件,说明接下来的1个月会有相同的ID,但日期不同。