📄 time.js
字号:
today=new Date();
thisyear=today.getYear();
thismonth=today.getMonth()+1;
thisdate=today.getDate();
thisday=today.getDay();
if(thisyear < 300)thisyear = thisyear - 100 + 2000;
document.write(thisyear+"年"+thismonth+"月"+thisdate+"日");
if (thisday==0) document.write(" 星期日");
if (thisday==1) document.write(" 星期一");
if (thisday==2) document.write(" 星期二");
if (thisday==3) document.write(" 星期三");
if (thisday==4) document.write(" 星期四");
if (thisday==5) document.write(" 星期五");
if (thisday==6) document.write(" 星期六");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -