let stringtime = Date.parse(nowtime) //当前时间戳
let startime = Date.parse(year+"-"+getNow(month)+"-"+getNow(day)+" "+"05:00:00")
let endtime = Date.parse(year+"-"+getNow(month)+"-"+getNow(day)+" "+"19:00:00")
2.
接着进行判断
if (stringtime >= startime && stringtime <= endtime) {
console.log('成功在区间内')