// 判断时间是否超过了16:30 // true: 已超时 // false: 未超时 function timeCompare() { var now = new Date(); var nowTime = now.getTime(); var year = now.getFullYear(); ;//js从0开始取 var date = now.getDate(); var deadlineStr = year + "/" + month + "/" + da
//判断结束时间一定要大于开始时间 function comparativeTime(){ var isok=true; //早餐配送时间 var breakfastScanTimeMin = $("#breakfastScanTimeMin").val(); var breakfastScanTimeMax = $("#breakfastScanTimeMax").val(); //早餐订餐时间 var breakfastBookTimeMin = $("