const start = new Date();
const end = new Date();
end.setTime(end.getTime() + 3600 * 1000 * 2); // 设置结束默认时间为当前时间两小时后
timer = [ start, end ]
const start = new Date();
const end = new Date();
end.setTime(end.getTime() + 3600 * 1000 * 2); // 设置结束默认时间为当前时间两小时后
timer = [ start, end ]
本文标题:el-date-picker 设置默认时间
本文链接:https://www.haomeiwen.com/subject/hntpqdtx.html
网友评论