为什么没输出
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>获得星期</title> <script type="text/javacript"> var data=new Data(); var weekend=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]; document.write(weekend[data.getDay()]) </script> </head> <body> </body> </html>