jquery完整日历 [英] jquery full calendar

查看:93
本文介绍了jquery完整日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有的是带有12个选项卡的标签页(每个选项卡都是一年中的一个月)。
我需要什么是当我加载jQuery的日历,foreach选项卡,日历切换到分配的月份。 (例如,当我点击并加载1月份的日历时,日历会显示1月份,等等)。

文档页面?该函数需要2个必需参数和2个可选参数。

  .fullCalendar('gotoDate',year [,month,[date ]])

因此,要将日历设置为2010年4月,您可以使用如下所示的内容:

  .fullCalendar('gotoDate',2010,5)

请注意,月份是基于0的,因此4月份= 3。


What i have is a tabbed page with 12 tabs (every tab is a month of the year). What i need is when i load jquery calendar, foreach tab, the calendar to switch to the month that is assigned. (e.g when i click and load page for January the calendar shows days for january, and so on).

解决方案

Did you check out the documentation page? The function takes in 2 required parameters and 2 optional ones.

.fullCalendar( 'gotoDate', year [, month, [ date  ]] )

So to set your calendar to April 2010, you would use something like this:

.fullCalendar( 'gotoDate', 2010, 5)

Note that the months are 0-based so April=3.

这篇关于jquery完整日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆