网站页里上的日期
下边的HTML代码,能够与出日期取礼拜
<html>
<body>
<h1>
<script
language=JavaScript>
var d, s = "";
var x = new Array("礼拜日", "礼拜一",
"礼拜两","礼拜三","木曜日", "礼拜五","礼拜六");
d = new
Date();
s+=d.getFullYear()+"年"+(d.getMonth() +
1)+"月"+d.getDate()+"日 ";
s+=x[d.getDay()];
document.writeln(s);
</script>
</h1>
</body>
</html>
相关信息
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|