<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>获得星期</title> <script type="text/javascript"> var mydate=new Date(); var myDay =mydate.getDay(); var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]; var trueDay = weekday[myDay] document.write("今天是:" + trueDay ); </script> </head> <body> </body> </html>
BlizzardCoder
2014-08-13
1 回答
举报
0/150
提交
取消