![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mongoose
shuhaha
这个作者很懒,什么都没留下…
展开
-
Ubuntu安装mongoose问题
安装mongoose完成后 但是程序报错找不到mongoose需要加上一句 npm link mongoose原创 2017-10-19 11:49:14 · 581 阅读 · 0 评论 -
mongoose中数组循环查询find结果的同步实现
在项目中,mongoose的find方法查询是异步查询的,所以得到的结果是异步的结果,看下面的例子。根据试卷的id号查找对应试卷中的试题,找到试题id后找到试题信息。加入试题数据库信息如下:quesType是试题类型(单选/多选/判断),quesStem是试题题干,quesAns是试题答案,quesAla试题结果分析。后台查询代码如下:Exam.find({ _id:id原创 2017-10-11 09:38:41 · 4864 阅读 · 1 评论