我在我的应用程序中使用bootstrap datepicker。
以下是我的代码,
<div class='input-group date' id='dtpCalendar'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar">
</span>
</span>
</div>
$('#dtpCalendar').datepicker({
startView: "months",
Default: 'MMMM',
format: 'mm/dd',
multidate: true
});
目前,datepicker如下所示,
我想将标题格式从MMMM YYYY更改为MMMM。
我尝试从bootstrap-datepicker.js更改以下代码,但它不起作用,
this.picker.find('#dtpCalendarthead .datepicker-switch')
.text(DPGlobal.formatDate(new UTCDate(month), titleFormat, this.o.language));
我还能尝试什么?