如果我使用 2 个不同配置的TempusDominus Bootstrap4实例,结果是两个实例的混合 UNEXPECTED 新配置
这是一个示例代码:
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<div class="input-group date" id="datetimepicker1" data-target-input="nearest">
<input type="text" class="form-control datetimepicker-input" data-target="#datetimepicker1"/>
<div class="input-group-append" data-target="#datetimepicker1" data-toggle="datetimepicker">
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
</div>
</div>
</div>
</div>
</div>
</div>
<label for="Periodo" class="control-label labelFiltro">Periodo</label>
<div class="input-group date" id="Periodo" data-target-input="nearest">
<input type="text" class="form-control datetimepicker-input" data-target="#Periodo" />
<div class="input-group-append" data-target="#Periodo" data-toggle="datetimepicker">
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
</div>
</div>
$(function() {
$('#datetimepicker1').datetimepicker({ useCurrent: false, format: 'MMMM YYYY'});
$('#Periodo').datetimepicker({ useCurrent: false, format: 'L'});
});
我希望第一个实例向我显示月历,第二个实例向我显示日历。
好像是个bug...