【发布时间】:2014-07-23 06:53:40
【问题描述】:
我正在使用fullcalendar,目前它正在显示每月视图。
我正在使用以下代码来初始化完整的日历。
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: '2014-06-12',
editable: true,
events: [
{
title: 'All Day Event',
start: '2014-06-01'
},
{
title: 'Long Event',
start: '2014-06-07',
end: '2014-06-10'
},
{
id: 999,
title: 'Repeating Event',
start: '2014-06-09T16:00:00'
},
{
id: 999,
title: 'Repeating Event',
start: '2014-06-16T16:00:00'
},
{
title: 'Meeting',
start: '2014-06-12T10:30:00',
end: '2014-06-12T12:30:00'
},
{
title: 'Lunch',
start: '2014-06-12T12:00:00'
},
{
title: 'Birthday Party',
start: '2014-06-13T07:00:00'
},
{
title: 'Click for Google',
url: 'http://google.com/',
start: '2014-06-28'
}
]
});
});
但我想像这样更改视图
请建议如何在 fullcalendar 中实现这一点? 谢谢。
【问题讨论】:
-
能否包含初始化日历的代码?
-
您好,请查看已编辑的问题。谢谢。
标签: jquery jquery-plugins calendar fullcalendar