天天看點

jQuery EasyUI API 中文文檔 - 日期時間框(DateTimeBox)

擴充自 $.fn.datebox.defaults。用 $.fn.datetimebox.defaults 重寫了 defaults。

jQuery EasyUI API 中文文檔 - 日期時間框(DateTimeBox)

依賴

datebox

timespinner

用法

1. <input id="dt" type="text"></input>

  取值:

1. $('#dt').datetimebox({  

2.     showSeconds:false

3. }); 

特性

其特性擴充自 datebox,下列是為 datetimebox 增加的特性。

名稱

類型

說明

預設值

showSeconds

boolean

定義是否顯示秒的資訊。

true

方法

其方法擴充自 datebox,下列是為 datetimebox 重寫的方法。

參數

options

none

傳回 options 對象。

spinner

傳回 timespinner 對象。

setValue

value

設定 datetimebox 的值。

繼續閱讀