`
leiwuluan
  • 浏览: 695066 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类

ext dateField汉化例子

阅读更多
Date.dayNames = ["日", "一", "二", "三", "四", "五", "六"];
	Date.monthNames=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"];
    if (Ext.DatePicker) {
        Ext.apply(Ext.DatePicker.prototype, {
            todayText: "今天",
            minText: "日期在最小日期之前",
            maxText: "日期在最大日期之后",
            disabledDaysText: "",
            disabledDatesText: "",
            monthNames: Date.monthNames,
            dayNames: Date.dayNames,
            nextText: '下月 (Control+Right)',
            prevText: '上月 (Control+Left)',
            monthYearText: '选择一个月 (Control+Up/Down 来改变年)',
            todayTip: "{0} (Spacebar)",
            okText: "确定",
            cancelText: "取消",
            format: "y年m月d日"
        });
    }

 


 
 

  • 大小: 15.2 KB
  • 大小: 15.6 KB
3
0
分享到:
评论
1 楼 dingdong250 2010-02-12  
受教,受益匪浅。

相关推荐

Global site tag (gtag.js) - Google Analytics