Before and after the layui set the current time is not optional

 

 

html part

 <input class="layui-input" placeholder="开始日" name="start" id="loseDate" autocomplete="off" lay-verify="date">

js part

// perform a laydate example 
        laydate.render ({ 
            elem: '#loseDate' // specified elements 
            , min: 0 // Set the minimum start time 
        });

Setting the minimum, maximum start time simply add min, max

Guess you like

Origin www.cnblogs.com/book-mountain/p/11828231.html