向fullCalendar添加事件处理程序
我想在header(agendaWeek视图)和Month视图中的天数上添加事件。 我这样做:向fullCalendar添加事件处理程序,fullcalendar,Fullcalendar,我想在header(agendaWeek视图)和Month视图中的天数上添加事件。 我这样做: $(".fc-day-number").click(function(){ alert($(this).text()); }); $(".fc-widget-header").click(function(){ alert($(this).text()); }); 但它不起作用。但是,当我添加鼠标悬停而不是单击事件时,它就起作用了 $(".fc-day-number").mouse
$(".fc-day-number").click(function(){
alert($(this).text());
});
$(".fc-widget-header").click(function(){
alert($(this).text());
});
但它不起作用。但是,当我添加鼠标悬停而不是单击事件时,它就起作用了
$(".fc-day-number").mouseover(function(){
alert($(this).text());
});
$(".fc-widget-header").mouseover(function(){
alert($(this).text());
});
我猜这与内置的dayClick或select回调有关。试着改用“mousedown()”看看会发生什么