参考文章:
layui laydate设置最小时间为当前时间,不能选择今天之前的时间https://blog.csdn.net/qq_33769914/article/details/115513949
https://blog.csdn.net/qq_33769914/article/details/115513949
<input class="layui-input icon-date" id="endDate" lay-verify="required" name="endDate"
placeholder="请输入截止时间" required type="text" autocomplete="off"/>
//渲染时间选择框
laydate.render({
elem: '#endDate',
type: 'date',
min: new Date().toLocaleString()//不能小于当前时间
});
laydate不能正常使用的可能原因:
【Layui】laydate可能无法正常使用的原因_路远不知归-CSDN博客https://blog.csdn.net/qq_25978501/article/details/103417542