mongodb - schema中格式时间

   date:{
  type: String,
       default: () => moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
   }
posted @ 2019-09-19 22:50  武卡卡  阅读(741)  评论(0编辑  收藏  举报