Js自定义日期
let _startTime = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7); let _endTime = new Date(); let startTime = `${_startTime.getFullYear()} ${_startTime.getMonth() + 1} ${_startTime.getDate()} 00:00:00`; // 7日前 let endTime = `${_endTime.getFullYear()} ${_endTime.getMonth() + 1} ${_endTime.getDate()} 23:59:59`; // 今日