js时间转换+比较 Date.parse的兼容
vartip=setInterval("checkTime()","10000"); vartemp=document.getElementById("hidden_endT").value; vardatereturn=toDate(temp); functioncheckTime(){ varmyTime=Date(); if(Date.parse(myTime)>datereturn){ clearInterval(tip); varauctionCode=document.getElementById("auctionCode").value; window.open("ResultAuction.aspx?auctionCode="+auctionCode,"_self"); } } functiontoDate(getTemp){ temp=getTemp.split(""); vardateReturn=temp[0].split("-")[1]+"-"+temp[0].split("-")[2]+"-"+temp[0].split("-")[0]+""+temp[...