显示月份

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