计时器功能返回自12:00 AM以来的秒数和毫秒数。
句法
Timer()
例
<!DOCTYPE html> <html> <body> <script language = "vbscript" type = "text/vbscript"> document.write("Time is : " & Now() & "<br />") document.write("Timer is: " & Timer()) </script> </body> </html>
将其另存为.html并在Internet Explorer中执行时,上述脚本将产生以下结果:
Time is : 19/07/2020 3:45:53 PM Timer is: 56753.4
作者:terry,如若转载,请注明出处:https://www.web176.com/vbscript/1176.html