灰鸟0
2015-10-08 21:19
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>获得星期</title> <script type="text/javascript"> var mydate=new Date(); var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]; var mynum=mydate.getDate(); document.write("今天是:"+mynum+"</br>"); document.write("今天是:"+weekday[mynum]); </script> </head> <body> </body> </html>
找到错了,原来是字母的大意
JavaScript进阶篇
468061 学习 · 21891 问题
相似问题