日期插件

datepicker

$('#datepicker').datepicker({
keyboardNavigation: false,
forceParse: false,
autoclose: true,
endDate:'{{ date('m/d/Y') }}'
});

<div class="form-group">
<div class="input-daterange input-group" id="datepicker" style="margin-bottom: 15px">
<input type="text" class="input-sm form-control" placeholder="帖子创建时间" name="start" style="height: 33px" value="{{ $request->start }}"/>
<span class="input-group-addon">to</span>
<input type="text" class="input-sm form-control" style="height: 33px" name="end" value="{{ $request->end ? $request->end : date('m/d/Y') }}" />
</div>
</div>

<link href="{{ asset('css/plugins/datapicker/datepicker3.css') }}" rel="stylesheet">
<script src="{{asset('js/plugins/datapicker/bootstrap-datepicker.js')}}"></script>

引入文件后 记得要初始化
最后修改:2019-05-27 11:59:41
0