bootstrap-datepicker使用


$('.date').datepicker({
language: 'zh-CN', --指定格式
format: 'yyyy-mm', --格式要求
autoclose: true, --选择后是否立即关闭
startView: "year", --打开时间控件后,默认显示
minViewMode: "months" --默认选择的级别,可以直接选择月份
});

原文地址:https://www.cnblogs.com/honzhez/p/5764408.html