代碼如下:
<!DOCTYPE HTML PUBLIC "
<html>
<head>
<meta http
<script type="text/javascript">
function bodyLoad(){
var dateTime=new Date();
var hh=dateTime
if(hh<
var mm=dateTime
if(mm<
var ss=dateTime
if(ss<
var yy=dateTime
var MM=dateTime
var dd=dateTime
var week=dateTime
var days=[ "日 "
document
document
setTimeout(bodyLoad
}
</script>
</head>
<body onload="bodyLoad()">
<input type="text" id="date" style="border:
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20043.html