BootStrap Datetimepicker 汉化的实现代码
更新时间:2017年02月10日 14:45:18 作者:lijamj
这篇文章主要介绍了 BootStrap Datetimepicker 汉化的实现代码,需要的朋友可以参考下
页面引用:
$('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 汉化的实现代码,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
相关文章
JavaScript+html5 canvas绘制的圆弧荡秋千效果完整实例
这篇文章主要介绍了JavaScript+html5 canvas绘制的圆弧荡秋千效果,以完整实例形式分析了JavaScript集合html5的canvas绘制图形的相关技巧,需要的朋友可以参考下2016-01-01javascript 解决表单仍然提交即使监听处理函数返回false
解决表单依旧提交即使监听处理函数返回false2010-03-03基于JavaScript实现HarmonyOS备忘录服务卡片
这篇文章主要介绍了基于JavaScript实现HarmonyOS备忘录服务卡片,文章围绕主题展开详细的内容介绍,具有一定的参考价值,需要的小伙伴可以参考一下2022-05-05
最新评论