layui 时间前后节点验证
var start = { istime: true, format: 'YYYY-MM-DD hh:mm:ss', max: '2099-06-16', istoday: true, choose: function (datas) { end.min = datas; //开始日选好后,重置结束日的最小日期 timeConflictJudgment() } }; var end = { istime: true, format: 'YYYY-MM-DD hh:mm:ss', max: '2099-06-16', istoday: true, choose: function (datas) { start.max = datas; //结束日选好后,重置开始日的最大日期 timeConflictJudgment() } }; document.getElementById('carInsuranceStartTime').onclick = function () { start.elem = this; laydate(start); }; document.getElementById('carInsuranceEndTime').onclick = function () { end.elem = this; laydate(end); };