[技术分享]20171130_Kendo UI _ datePicker日期控件如何只选择年,不选择月,日?
生活随笔
收集整理的這篇文章主要介紹了
[技术分享]20171130_Kendo UI _ datePicker日期控件如何只选择年,不选择月,日?
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
datePicker日期控件是很常用的控件,可以使用 start , depth來控制取值的范圍。
start ,depth可以選擇的參數有month,year,decade ,century 。
如何要只選擇年:我們要用參數 decade ,以此類推。
?
$("#monthpicker").kendoDatePicker({// defines the start viewstart: "year",// defines when the calendar should return date depth: "year",// display month and year in the inputformat: "MMMM yyyy",// specifies that DateInput is used for masking the input elementdateInput: true});?
轉載于:https://www.cnblogs.com/dingzheng/p/7932393.html
總結
以上是生活随笔為你收集整理的[技术分享]20171130_Kendo UI _ datePicker日期控件如何只选择年,不选择月,日?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 算法导论第三版习题及答案
- 下一篇: 超级好用 将html字符串,转化为纯文本