在FullCalendar插件中可以定义标题,其中可以查看日期..直到..(显示事件23.04.2013 - 25.04.2013)。这可以通过以下方式完成:
header: {
left: 'prev,next today',
center: 'title',
right: 'year,month,agendaWeek,agendaDay'
}
有没有办法提取title
以便在其他元素中使用?我需要从#calender
容器中显示此标题内容。
谢谢!
答案 0 :(得分:0)
你可以使用jquery
var title = $(".fc-header-title h2").html();