在网页中实现每日更新的中文日期
<html>
<head>
<title>中文日期</title>
</head>
<body>
<script language=“JavaScript”>
function number(index1){?牓?
var numberstring=“一二三四五六七八九十”??
if(index1==0){document.write(“十”)?牓?
if(index1<10){?牓?
document.write(numberstring.substring(0+(index1-1),index1))}?牐牓?
else if(index1 < 20 ){?牓?
document.write(“十”+numberstring.substring(0+(index1-11),(index1-10)))}?牐牐牓?
else if(index1 < 30 ){?牓?
document.write(“二十”+numberstring.substring(0+(index1-21),(index1-20)))}?牐牐? else{??
document.write(“三十”+numberstring.substring(0+(index1-31),(index1-30)))}?牐牐牓? }
var today1 = new Date()?煟?
var month = today1.getMonth()+1
var date = today1.getDate()?煟?
var day = today1.getDay()?煟?
document.write(“<br><strong><small><center>”)??
document.write(“公元二○○○年”)??
number(month)??
document.write(“月”)??
number(date)??
document.write(“日</small>vcenter>”)??
</script>
</body>
</html>