如图所示:默认显示当月全部事件,点击了带有事件的10号,其他事件全部隐藏
(使用的是e-calendar.js插件)
var mouseClickEvent = function () {
var d = $(this).attr('data-event-day');
$('div.c-event-item[data-event-day="' + d + '"]').addClass('c-event-over');
};//这里我使用了not('.c-event-over')的方法只能隐藏,不知道如何显示回来
cDay.on('click', mouseClickEvent).on('mouseleave', mouseLeaveEvent);