code: function json () {
    let year = this.getFullYear()
    let month = this.getMonth() + 1
    let date = this.getDate()
  
    let hour = this.getHours()
    let minute = this.getMinutes()
    let second = this.getSeconds()
    let day = this.getDay()
    let millisecond = this.getMilliseconds()
    return {
      year: year,
      month: month,
      date: date,
      hour: hour,
      minute: minute,
      second: second,
      day: day,
      millisecond: millisecond
    }
  }
docs: 将时间转换为 JSON 对象