就是我i想在后台设置一个过期时间,当系统时间超过了我们设置的时间,所有的数据都清空为零,这个该怎么实现呢?有没有大神会的
<scripttype="text/javascript"language="javascript"> function CompareDate() { // new Date(Year, Month, Date, Hr, Min, Sec); var dateOne = new Date(2012, 04, 20, 14, 55, 59); var dateTwo = new Date(2012, 04, 20, 12, 10, 20); //Note: 04 is month i.e. May if (dateOne > dateTwo) { alert("Date One is greather then Date Two."); }else { alert("Date Two is greather then Date One."); } } CompareDate(); </script>