日期格式化: 1.下载第三方模块 moment2.引入模块 const moment = require(“moment”);3.使用 moment(日期对象).format(日期格式) 常见的日期格式:YYYY/MM/DD hh:mm:ss YYYY/MM/DD YYYY-MM-DD