在我的 FullCalendar 应用程序中,更具体地说,在月 View 可视化方面,每当将 3 个或更多事件添加到同一天时,我就会出现一个链接,然后我想让该链接指向该特定的日 View 模式日。
$(".events-view-more a").click(function () {
alert("clicou");
});
父元素(.events-view-more a 的父元素)td 元素包含一个数据属性,其日期值包含类似“2013-11-29”的内容。
如何使用它将可视化模式更改为当天的日 View ?
最佳答案
如果您单击“月” View 中单元格上的任意位置,类似这样的操作会将您从“月” View 转到“日” View :
$('#calendar').fullCalendar({
//other parameters here
dayClick: function(date, jsEvent, view) {
$('#calendar').fullCalendar('gotoDate',date);
$('#calendar').fullCalendar('changeView','agendaDay');
}
});
希望这对其他人有用,我知道这是一篇旧帖子。
关于jquery - FullCalendar 从月到日更改 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20277895/