單項選擇題

在JavaScript中,可以使用var today = new Date();這樣的方法獲得系統(tǒng)當前時間,假設系統(tǒng)時間是2007-7-2 星期一,則today.getDay() 的返回值是()。

A.1
B.0
C.7
D.星期一

微信掃碼免費搜題