显示星期

  1. <html>
  2. <body>
  3.  
  4. <p>VBScripts <b>WeekdayName</b> 函数用于获得 weekday:</p>
  5. <script type="text/vbscript">
  6. document.write("<p>")
  7. document.write(WeekDayName(1))
  8. document.write("<br />")
  9. document.write(WeekDayName(2))
  10. document.write("</p><p>")
  11.  
  12. document.write("Get the abbreviated name of a weekday:")
  13. document.write("<br />")
  14. document.write(WeekDayName(1,true))
  15. document.write("<br />")
  16. document.write(WeekDayName(2,true))
  17. document.write("</p><p>")
  18.  
  19. document.write("Get the current weekday:")
  20. document.write("<br />")
  21. document.write(WeekdayName(weekday(date)))
  22. document.write("<br />")
  23. document.write(WeekdayName(weekday(date), true))
  24. document.write("</p>")
  25. </script>
  26.  
  27. </body>
  28. </html>