Last active
October 1, 2019 06:12
-
-
Save firstfu/36f8dd3e87e1940ebad8d590e3af0a0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getDay()返回一星期中的某一天(0-6) | |
getDate()返回一个月中的某一天(1-31) | |
getDate (date) { | |
return { | |
year: date.getFullYear(), | |
month: date.getMonth(), | |
day: date.getDay(), | |
date: date.getDate() | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment