Skip to content

Instantly share code, notes, and snippets.

@firstfu
Last active October 1, 2019 06:12
Show Gist options
  • Save firstfu/36f8dd3e87e1940ebad8d590e3af0a0c to your computer and use it in GitHub Desktop.
Save firstfu/36f8dd3e87e1940ebad8d590e3af0a0c to your computer and use it in GitHub Desktop.
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