选择日期范围:
<div class="layui-inline"><label class="layui-form-label">选择日期段:</label><div class="layui-input-inline"><input type="text" class="layui-input" id="test-range-date" placeholder="开始 - 结束"></div> </div>
<script> layui.use('laydate', function(){var laydate = layui.laydate;// 日期时间范围laydate.render({elem: '#test-range-date',range: true,format: 'yyyy-MM-dd'}); }); </script>