//判断两个时间段是否有交集 private function checkTimeCross($start_time,$end_time){ $sql ) AND ((start_time > {$start_time} AND start_time < {$end_time}) OR (start_time < {$start_time} AND end_time > {$end_time}) OR (end_time > {$start_time} AND end_tim…
JS两日期相减,主要用到下面两个方法 dateObject.setFullYear(year,month,day) 方法 stringObject.split(separator) 方法 function getOffsetDays(startDate, endDate){ var startDateArr = startDate.split("-"); var checkStartDate = new Date(); checkStartDate.setFullYear(startD…