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