if (ifdo == "0") { alert("商铺休息中,不可购买"); return; } if (doAday == "0") { var timestamp = new Date().getHours() + ":" + new Date().getMinutes(); if (timestamp < doStartTime || timestamp > doEndTime) { alert("不在商铺营业期间内,不可购买"); return; } }
if (ifdo == "0") { alert("商铺休息中,不可购买"); return; } if (doAday == "0") { var timestamp = new Date().getHours() + ":" + new Date().getMinutes(); if (timestamp < doStartTime || timestamp > doEndTime) { alert("不在商铺营业期间内,不可购买"); return; } }
转载于:https://www.cnblogs.com/mchuang/p/5424940.html