jQuery UI-自定义小部件-Datepicker到全年日历 [英] jQuery UI - Custom widget - Datepicker to Whole Year Calendar

查看:147
本文介绍了jQuery UI-自定义小部件-Datepicker到全年日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用jquery ui显示全年.是否可以将代码缩减为整年的日历?

i want to display whole year with jquery ui. is it possible to cut down the code to just whole year Calender?

推荐答案

将"defaultDate"设置为1月1日,然后将"numberOfMonths"设置为12.

Set the "defaultDate" to the 1th of january, and then set "numberOfMonths" to 12.

http://jqueryui.com/demos/datepicker/#multiple-calendars

您不必将defaultDate设置为1月1日,这取决于您希望压延机启动的日期.

you don't have to set the defaultDate to 1th of january, it depends on the date you want the calender to start.

这篇关于jQuery UI-自定义小部件-Datepicker到全年日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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