<s
cript language="javas
cript">
d=new Date();
date=d.getDate();
mo
nth=d.getMo
nth()+1;
year=d.getYear();
docu
ment.write(date);
</s
cript>
/
<s
cript language="javas
cript">
d=new Date();
date=d.getDate();
mo
nth=d.getMo
nth()+1;
year=d.getYear();
docu
ment.write(month);
</s
cript>
上面是20/1 样式
下面是星期几
<s
cript language="javas
cript">
d=new Date();
date=d.getDate();
mo
nth=d.getMo
nth()+1;
year=d.getYear();
if(d.getDay()==5) docu
ment.write("周五")
if(d.getDay()==6) docu
ment.write("周六")
if(d.getDay()==0) docu
ment.write("周天")
if(d.getDay()==1) docu
ment.write("周一")
if(d.getDay()==2) docu
ment.write("周二")
if(d.getDay()==3) docu
ment.write("周三")
if(d.getDay()==4) docu
ment.write("周四")
</s
cript>
destoon显示当 二开教程