想获取 2018-02-03 13:32:53 这样一个时间格式:
var moment = require('moment'); moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
可以把Mysql数据库中读取的时间戳替换掉 new Date()