87,907
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<body>
<table>
<tr>
<td id="test">把日期显示在这个地方</td>
</tr>
</table>
<script language="JavaScript">
var isnMonth = new
Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
var isnDay = new
Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日");
today = new Date () ;
Year=today.getFullYear();
Date=today.getDate();
//if (document.all)
document.getElementById('test').innerHTML = "今天是: "+Year+"年"+isnMonth[today.getMonth()]+Date+"日"+isnDay[today.getDay()]
</script>
</body>
</html>
<table>
<tr>
<td id="test">把日期显示在这个地方</td>
</tr>
</table>
<script language="JavaScript">
var isnMonth = new
Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
var isnDay = new
Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日");
today = new Date () ;
Year=today.getFullYear();
Date=today.getDate();
//if (document.all)
document.getElementById('test').innerHTML = "今天是: "+Year+"年"+isnMonth[today.getMonth()]+Date+"日"+isnDay[today.getDay()]
</script>