函数现在返回当前系统日期和时间。
Now()
<!DOCTYPE html> <html> <body> <script language = "vbscript" type = "text/vbscript"> a = Now() document.write("The Value of a : " & a) </script> </body> </html>
将其另存为.html并在Internet Explorer中执行时,上述脚本将产生以下结果“”
The Value of a : 19/07/2020 3:04:09 PM