15.htm

来自「介绍了javascript的常用的函数」· HTM 代码 · 共 18 行

HTM
18
字号
<html>
<head>
<title>在状态栏中显示日期</title>
</head>
<body>
<script language="javascript">
<!--
	d = new Date()
	year  = d.getYear() + "年";
	month = (d.getMonth() + 1) + "月"
	date  = d.getDate() + "日";
	showDate = "现在的日期是:" + year + month + date;
	window.status = showDate;
//-->
</script>
在状态栏中能看见目前显示的时期!
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?