最近有个需求,想获取当天每天11点半到7点半这个时间段作为睡眠时间,有没有优雅的实现方法
function healthTime(){ //每天的11.30~07.30 返回true }
时间类的交给后端来做,只给你返回标识 不要在前端写