编辑下面的代码:【加编码】
<html> <body> <p>VBScripts' function <b>MonthName</b> is used to get a month:</p> <script type="text/vbscript"> document.write("<p>") document.write(MonthName(1)) document.write("<br>") document.write(MonthName(2)) document.write("</p><p>") document.write("Here is how you get the abbreviated name of a month:") document.write("<br>") document.write(MonthName(1,True)) document.write("<br>") document.write(MonthName(2,True)) document.write("</p><p>") document.write("Here is how you get the current month:") document.write("<br>") document.write(MonthName(Month(Date))) document.write("<br>") document.write(MonthName(Month(Date),True)) document.write("</p>") </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂