BootStrap Datetimepicker 汉化的实现代码
程序员文章站
2022-05-26 23:12:27
页面引用:
$('input[name=date-range]').daterangepicker({
'applyclass' : 'btn-sm...
页面引用:
$('input[name=date-range]').daterangepicker({ 'applyclass' : 'btn-sm btn-success', 'cancelclass' : 'btn-sm btn-default', locale: config.daterangepicker_locale.zh_cn });
daterangepicker汉化
/** * daterangepicker locale */ daterangepicker_locale: { zh_cn: { applylabel: '确定', cancellabel: '取消', daysofweek: ["日","一","二","三","四","五","六"], monthnames: ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"] } }
datetimepicker汉化
/** * daterangepicker locale */ daterangepicker_locale: { zh_cn: { days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"], daysshort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"], daysmin: ["日", "一", "二", "三", "四", "五", "六", "日"], months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], monthsshort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], today: "今天", suffix: [], meridiem: ["上午", "下午"] } }
以上所述是小编给大家介绍的bootstrap datetimepicker 汉化的实现代码,希望对大家有所帮助