用VBScript设计一个页面,显示一个数字时钟,格式如03:16:47 PM
请补全如下代码:
timerid=window.settimeout("clock()",1000)
sub clock()
hours=_______
minutes=________
seconds=________
if hours>12 then
mark = "PM"
hours = hours-12
end if
if hours=0 then hours=12
if hours<10 then hours="0"________
if minutes<10 then minutes="0"______
if seconds<10 then seconds="0"_______
nowtime= ______________
___________.innerhtml=nowtime
timerid=_____________
end sub
答:
hour(now)
minute(now)
second(now)
&hours
&minutes
&seconds
hours&":"&minutes&":"&seconds&" "&mark
nowT
window.settimeout("clock()",1000)
以上就是“2021年3月计算机二级WEB考前冲刺练习(五)”相关内容,小伙伴们快来了解一下吧。另外,大家可通过环球网校“ 免费预约短信提醒”及时获知2021年3月全国计算机等级考试时间提醒。友情提示:为方便小伙伴备考,环球网校特地准备了计算机二级复习资料,如有需要请点击文章下方“免费下载>>>2021年计算机等级考试精华资料”下载学习。