const moment = require('moment'); let time = moment('时间戳').format("'YYYY-MM-DD HH:mm:ss'"); console.log(time);//正常可读时间