如何在每个星期日的每个星期天重复活动,而不必为每个星期天创建活动。
答案 0 :(得分:1)
来自fullcalendar的基本方法:
您必须在星期日创建一个事件并每周重复一次(不需要):
{
id: 999,
title: 'Repeating Event',
start: new Date(y, m, d+7, 16, 0), // "d" must be start on sunday and be incremented by 7 each event
allDay: false
},
来自fullcalendar的高级方法:
您必须动态创建自己的日历Feed,然后创建定期事件:
<entry xmlns='http://www.w3.org/2005/Atom'
xmlns:gd='http://schemas.google.com/g/2005'>
<category scheme='http://schemas.google.com/g/2005#kind'
term='http://schemas.google.com/g/2005#event'></category>
<title type='text'>Tuesday Tennis Lessons with Jane</title>
<content type='text'>Meet on Tuesdays for a quick lesson.</content>
<gd:transparency
value='http://schemas.google.com/g/2005#event.opaque'>
</gd:transparency>
<gd:eventStatus
value='http://schemas.google.com/g/2005#event.confirmed'>
</gd:eventStatus>
<gd:where valueString='Rolling Lawn Courts'></gd:where>
<gd:recurrence>DTSTART;VALUE=DATE:20100505
DTEND;VALUE=DATE:20100506
RRULE:FREQ=WEEKLY;BYDAY=Tu;UNTIL=20100904
</gd:recurrence>
</entry>
中提取的