用法:
monthNames
类型:Array
默认:
[ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]
完整月份名称的列表,用于通过
dateFormat
选项请求使用。代码示例:
使用指定的 monthNames
选项初始化日期选择器:
$( ".selector" ).datepicker({
monthNames: [ "Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December" ]
});
初始化后获取或设置monthNames
选项:
// Getter
var monthNames = $( ".selector" ).datepicker( "option", "monthNames" );
// Setter
$( ".selector" ).datepicker( "option", "monthNames", [ "Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December" ] );
相关用法
- JQuery UI Datepicker monthNamesShort用法及代码示例
- JQuery UI Datepicker maxDate用法及代码示例
- JQuery UI Datepicker minDate用法及代码示例
- JQuery UI Datepicker prevText用法及代码示例
- JQuery UI Datepicker show用法及代码示例
- JQuery UI Datepicker appendText用法及代码示例
- JQuery UI Datepicker calculateWeek用法及代码示例
- JQuery UI Datepicker getDate用法及代码示例
- JQuery UI Datepicker defaultDate用法及代码示例
- JQuery UI Datepicker nextText用法及代码示例
- JQuery UI Datepicker closeText用法及代码示例
- JQuery UI Datepicker yearRange用法及代码示例
- JQuery UI Datepicker buttonImageOnly用法及代码示例
- JQuery UI Datepicker duration用法及代码示例
- JQuery UI Datepicker changeMonth用法及代码示例
- JQuery UI Datepicker currentText用法及代码示例
- JQuery UI Datepicker option用法及代码示例
- JQuery UI Datepicker constrainInput用法及代码示例
- JQuery UI Datepicker showOptions用法及代码示例
- JQuery UI Datepicker changeYear用法及代码示例
- JQuery UI Datepicker showAnim用法及代码示例
- JQuery UI Datepicker altFormat用法及代码示例
- JQuery UI Datepicker firstDay用法及代码示例
- JQuery UI Datepicker isRTL用法及代码示例
- JQuery UI Datepicker altField用法及代码示例
注:本文由纯净天空筛选整理自jqueryui.com大神的英文原创作品 Datepicker monthNames。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。