首页
极刻
圈子
教程
开源
极客社区
写文章
发极刻
建圈子
发项目
登录 / 注册
返回教程:VBScript 教程
TRY RUN / 在线示例
VBScript 教程 显示月份
VBScript 教程 显示月份
源代码
运行
<!DOCTYPE html> <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>
运行结果