投放本站广告请联系:
extjscn#126.com
sencha touch datepicker修改月份和星期名字
sencha touche datepicker控件没有提供直接修改月份的方法.经过查看源码搜索,出框架提供一个全局的变量.Ext.Date.monthNames.datepicker引用的是这个变量,所以只需要修改这个变量就可以了.
monthNames : String[]
An array of textual month names. Override these values for international dates. Example:
Ext.Date.monthNames = [ 'JanInYourLang', 'FebInYourLang', ... ];
Defaults to: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
同样的,星期的修改方法一样.
dayNames : String[]
An array of textual day names. Override these values for international dates. Example:
Ext.Date.dayNames = [ 'SundayInYourLang', 'MondayInYourLang', ... ];
Defaults to: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
作者: 雨打蕉叶
原文: http://09572.iteye.com/blog/2022640
- 关键字:
- 要发表评论,请先登录