<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>第一个JavaScript程序</title>
</head>
<body>
<script type="text/javascript">
var now=new Date();
var hour=now.getHours();
var minu=now.getMinutes();
alert("您好,现在是"+hour+":"+minu+"\r欢迎访问本公司网站");
</script>
</body>
</html>
javaScript打印实时访问时间
最新推荐文章于 2022-08-06 10:34:38 发布