setNowFormatDate() {
      let date = new Date();
      let month = (date.getMonth() + 1).toString().padStart(2,'0');
      let strDate = date.getDate().toString().padStart(2,'0');
      //时间格式yyyy-MM-dd HH:MM:SS
      return `${date.getFullYear()}-${month}-${strDate} ${this.getCurrentTime()}`;
    },
    getCurrentTime() {
      let date = new Date();
      //时间格式HH:MM:SS
      return `${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`;
    },

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2021-12-13
  • 2022-12-23
  • 2021-08-15
  • 2021-10-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
相关资源
相似解决方案