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.