实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<p>VBScripts' function <b>WeekdayName</b> is used to get a weekday:</p>
6
<script type="text/vbscript">
7
document.write("<p>")
8
document.write(WeekDayName(1))
9
document.write("<br>")
10
document.write(WeekDayName(2))
11
document.write("</p><p>")
12
13
document.write("Get the abbreviated name of a weekday:")
14
document.write("<br>")
15
document.write(WeekDayName(1,True))
16
document.write("<br>")
17
document.write(WeekDayName(2,True))
18
document.write("</p><p>")
19
20
document.write("Get the current weekday:")
21
document.write("<br>")
22
document.write(WeekdayName(weekday(Date)))
23
document.write("<br>")
24
document.write(WeekdayName(weekday(Date), True))
25
document.write("</p>")
26
</script>
27
28
</body>
29
</html>
30
31
32
33
34
35
36
37
38
39
40