想获取 2018-02-03 13:32:53  这样一个时间格式:

var moment = require('moment');
moment(new Date()).format('YYYY-MM-DD HH:mm:ss')

可以把Mysql数据库中读取的时间戳替换掉 new Date()

 

相关文章:

  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2021-10-16
  • 2021-07-19
  • 2022-02-09
相关资源
相似解决方案