天天看點

高效判斷星期幾的 javascript代碼

new Date().getDay() 傳回結果如下:

0 Sunday

1 Monday

2 Tuesday

3 Wednesday

4 Thursday

5 Friday

6 Saturday