2011-04-21 173 views
0

我正在使用Fullcalendar,當我點擊prev或next按鈕時,在標題上,我想獲取月份。我怎樣才能做到這一點?Fullcalendar jQuery prev和next按鈕

+1

看看我的例子[jQuery獲取下一個月的數據使用fullcalendar插件](http://stackoverflow.com/questions/12278295/jquery-get-the-next-month-data-using-fullcalendar-plugin/19135058 #19135058) – Ben 2013-10-02 11:01:54

回答

0

使用events這樣的:

$('#calendar').fullCalendar({ 
    events: '/myfeed.php' 
}); 

,並在用戶點擊一個或下一個按鈕,它會自動調用的myfeed.php,就像這樣:?start=1262332800&end=1265011200&_=1263178646

你將能夠在服務器端捕捉到它,它是Unix時間格式。

相關問題