layui laydate设置当前日期往后不可选
laydate.render({
elem: '#demo',
max: maxDate()
});
// 设置最大可选的日期
function maxDate() {
var now = new Date();
return now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + now.getDate();
}
layui laydate设置当前日期往后不可选
laydate.render({
elem: '#demo',
max: maxDate()
});
// 设置最大可选的日期
function maxDate() {
var now = new Date();
return now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + now.getDate();
}