首页 > 代码库 > 能自动显示主页的最后更新日期

能自动显示主页的最后更新日期

本页最后更新于-石家庄编导培训-亿诚<script LANGUAGE="JavaScript">function initArray(){this.length = initArray.arguments.lengthfor (var i = 0; i < this.length; i++)this[i+1] = initArray.arguments[i]}var WeekArray = new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六");var MonthArray = new initArray("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");var LastModDate = new Date(document.lastModified);document.write(LastModDate.getYear()+"");document.write(MonthArray[(LastModDate.getMonth()+1)]);document.write(LastModDate.getDate()+"");document.write(WeekArray[(LastModDate.getDay()+1)]);</script>

 

能自动显示主页的最后更新日期