document.write("<FONT COLOR=\"RED\" size=\"4\" >"+getCurYear()+"年"+getCurNextmonth()+"月</font>");
转换成”2003年11月11日”的函数:
new Date().toLocaleDateString();动态表示现在的系统时间
<span id=time1></span>
<script>
setInterval("time1.innerHTML=new Date().toLocaleTimeString()",1000)
</script>
转换成”2003年11月11日”的函数:
new Date().toLocaleDateString();动态表示现在的系统时间
<span id=time1></span>
<script>
setInterval("time1.innerHTML=new Date().toLocaleTimeString()",1000)
</script>
mytime=new Date();
alert("bbbbbbbbb");
alert(mytime.getYear()+"年"+mytime.getMonth()+"月");
document.write(mytime.getYear()+"年"+mytime.getMonth()+"月"+mytime.getDate()+"日");
</script>
getCurYear()应是你自写的函数吧?