當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


JQuery UI Datepicker showCurrentAtPos用法及代碼示例

用法:

showCurrentAtPos
類型:Number
默認:0
通過 numberOfMonths 選項顯示多個月份時,showCurrentAtPos 選項定義顯示當前月份的位置。

代碼示例:

使用指定的 showCurrentAtPos 選項初始化日期選擇器:

$( ".selector" ).datepicker({
  showCurrentAtPos: 3
});

初始化後獲取或設置showCurrentAtPos選項:

// Getter
var showCurrentAtPos = $( ".selector" ).datepicker( "option", "showCurrentAtPos" );
 
// Setter
$( ".selector" ).datepicker( "option", "showCurrentAtPos", 3 );

相關用法


注:本文由純淨天空篩選整理自jqueryui.com大神的英文原創作品 Datepicker showCurrentAtPos。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。