fullcalendar点击prve或者next按钮翻月时,触发一个函数

我就想当点击prve或者next按钮翻月时,触发一个函数,然后函数里面做些其他的操作。

用jquery找出上下按钮添加click事件就行了
fc1.5用这个
$('#calendar').find('.fc-button-prev,.fc-button-next').click(function(){alert($(this).hasClass('fc-button-prev')?'prev':'next')})
fc2.2用这个
$('#calendar').find('.fc-prev-button,.fc-next-button').click(function(){alert($(this).hasClass('fc-prev-button')?'prev':'next')})

其他版本注意修改样式选择器