前端有个日期是2022/2/14,然后想在后端数据库查找同样是2022/2/14日的数据,该怎么找呢
来源:2-6 【文献综述】文献综述是什么,该怎么写

开门啦
2022-02-14
写回答
1回答
-
慕设计6117602
2022-03-14
router.get('/list',async(ctx)=>{ const { timestamp=0 }=ctx.query const query={} if(timestamp){ query.publishDate=timestamp } //此处注意Personnel的大小写,差点翻车 const list=await Personnel .find(query) .exec() ctx.body={ data:{ list, }, code:1, msg:'获取列表成功', } })
具体看5-11、5-12
012022-03-14
相似问题