VBScript Now 函數(shù)

2022-08-19 10:35 更新

VBScript Now 函數(shù)用于獲取當前計算機的系統(tǒng)日期和時間。


VBScript 參考手冊完整的 VBScript 參考手冊

Now 函數(shù)根據(jù)計算機系統(tǒng)的日期和時間設(shè)置返回當前的日期和時間。

語法

Now

實例

實例(僅適用于 IE)

<script type="text/vbscript">

document.write("The current system date and time is: ")
document.write(Now)

</script>

以上實例輸出結(jié)果:

document.write("The current system date and time is: ") document.write(Now)

嘗試一下 ?


VBScript 參考手冊完整的 VBScript 參考手冊
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號