<script type="text/javascript">
var week = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var today = new Date();
document.write("今天是: ");
document.write(today.getFullYear());
document.write("年");
document.write(today.getMonth()+1);
document.write("月");
document.write(today.getDate());
document.write("日 ");
document.write(week[today.getDay()]);
</script>
显示如下:
今天是: 2008年11月6日 星期四
posted on 2008-11-06 10:56
老丁 阅读(1327)
评论(0) 编辑 收藏 所属分类:
js相关