用VBScript代码编写成html形式:1、分别使用select case和if语句判断计算机系统当前日期为星期几。
展开全部
<!--weekday.html-->
<script type="text/vbscript">
dim theTime, theDay
theTime = now()
theDay = weekday(theTime)
select case theDay
case 0:
document.write("星期天")
case 1:
document.write("星期一")
case 2:
document.write("星期二")
case 3:
document.write("星期三")
case 4:
document.write("星期四")
case 5:
document.write("星期五")
case 6:
document.write("星期六")
end select
</script>
<script type="text/vbscript">
dim theTime, theDay
theTime = now()
theDay = weekday(theTime)
select case theDay
case 0:
document.write("星期天")
case 1:
document.write("星期一")
case 2:
document.write("星期二")
case 3:
document.write("星期三")
case 4:
document.write("星期四")
case 5:
document.write("星期五")
case 6:
document.write("星期六")
end select
</script>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询