getYMD (date) {
let year = date.getFullYear()
let month = (date.getMonth() + 1 > 9) ? (date.getMonth() + 1 + '') : ('0' + (date.getMonth() + 1))
let day = (date.getDate() > 9) ? (date.getDate() + '') : ('0' + date.getDate())
let week = date.getDay()
return [year, month, day, week]
}

相关文章:

  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案