关于layui的日期和时间组件laydate闪屏的坑

https://blog.csdn.net/liangwenli_/article/details/82786713

jsp页面:
<input type="text" class="layui-input test-item" placeholder="审核时间" value="${model.checkDate}" name="checkDate">    
(注意:class必须添加 test-item样式 这是重点,具体去看layui文档)

js代码:
layui.use('laydate', function(){
    var laydate = layui.laydate;
    //同时绑定多个
    lay('.test-item').each(function(){
        laydate.render({
            elem: this
            ,format:'yyyy-MM-dd HH:mm:ss'
            ,type:'datetime'
            ,trigger: 'click'
        });
    });
});
原文地址:https://www.cnblogs.com/bbllw/p/10939289.html