<html>
<head>
<script language="javascript">
function c(){
//比较时间大小
var dA=new Date("2009-3-20 23:59:57".replace(/-/,"/"));
var dB=new Date("2009-3-20 23:58:59".replace(/-/,"/"));
if(Date.parse(dA)<Date.parse(dB)){
alert("dA<dB");
}else{
alert("dA>dB");
}
}
</script>
</head>
<body οnlοad="c()"> </body></html>