简体   繁体   English

Fullcalendar jQuery上一个和下一个按钮

[英]Fullcalendar jQuery prev and next buttons

I'm using Fullcalendar and when I click on the prev or next buttons, on the header, I want to get the month. 我正在使用Fullcalendar,当我单击标题上的上一个或下一个按钮时,我想获取月份。 How can I do that? 我怎样才能做到这一点?

Use events like this: 使用如下events

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

And when the user click the previous or next button, it will call the myfeed.php automatically, like this: ?start=1262332800&end=1265011200&_=1263178646 . 并且当用户单击上一个或下一个按钮时,它将自动调用myfeed.php,如下所示: ?start=1262332800&end=1265011200&_=1263178646

You will be able to catch this in server side and it's Unix Time Format. 您将可以在服务器端捕获它,它是Unix时间格式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM