學習筆記:javascript內置對象:日期對象

2.日期對象的常用函數   2.日期對象的常用函數   Date 對象方法 方法 描述 Date() 返回當日的日期和時間。 getDate() 從 Date 對象返回一個月中的某一天 (1 ~ 31)。 getDay() 從 Date 對象返回一週中的某一天 (0 ~ 6)。 getMonth() 從 Date 對象返回月份 (0 ~ 11)。 getFullYear() 從 Date 對象以四
相關文章
相關標籤/搜索