首页  编辑  

最后更新日期

Tags: /计算机文档/网页制作/   Date Created:

<SCRIPT LANGUAGE="JavaScript">

function initArray()

{

 this.length = initArray.arguments.length

 for (var i = 0; i < this.length; i++)

 this[i+1] = initArray.arguments[i]

}

var WeekArray = new initArray(" 周日","周一","周二","周三","周四","周五","周六");

var MonthArray = new initArray("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");

var LastModDate = new Date(document.lastModified);

document.write(LastModDate.getYear()+1900,",");

document.write(MonthArray[(LastModDate.getMonth()+1)]," ");

document.write(LastModDate.getDate()+",");

document.write(WeekArray[(LastModDate.getDay()+1)]);

</script>