<script language="javascript">
function CheckTime(loginTime)
{
var temp=new Array()
loginTime.replace(/(\d+)/g,function(a,b){temp.push(b)})
var varDate= new Date(temp[0],(parseInt(temp[1],10)-parseInt(1)),temp[2],temp[3],temp[4],temp[5])
var nowDate=new Date()
return ((nowDate-varDate)/(60*60*1000))>2
}
alert(CheckTime("2008-08-25 19:00:02"))
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货