用法:
monthNamesShort
類型:Array
默認:
[ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]
縮寫月份名稱列表,在每個日期選擇器的月份標題中使用,並通過
dateFormat
選項請求。代碼示例:
使用指定的 monthNamesShort
選項初始化日期選擇器:
$( ".selector" ).datepicker({
monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec" ]
});
初始化後獲取或設置monthNamesShort
選項:
// Getter
var monthNamesShort = $( ".selector" ).datepicker( "option", "monthNamesShort" );
// Setter
$( ".selector" ).datepicker( "option", "monthNamesShort", [ "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec" ] );
相關用法
- JQuery UI Datepicker monthNames用法及代碼示例
- 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 monthNamesShort。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。