moment的使用在vue项目中的使用 "moment": "^2.22.2", 通过版本号复制到package.json中 "dependencies"中 npm install 在页面引用 import Moment from 'moment'; 在方法中使用 return this.moment(parseInt(timestamp)).format("YYYY-MM-DD HH:mm:ss")