首页
移动开发
物联网
服务端
编程语言
企业开发
数据库
业界资讯
其他
搜索
在mongoose中使用正则,参数为变量时的写法
其他
2018-06-11 23:32:50
阅读次数: 3
const word = ctx.params.word
userModel.find({"name":{$regex: eval(`/${word}/ig`)}})
猜你喜欢
转载自
www.cnblogs.com/qiyc/p/9170501.html
在mongoose中使用正则,参数为变量时的写法
NodeJS中使用mongoose时的VersionKey问题
在nodejs中使用mongoose
Mongoose 中使用 aggregate
NestJs 中使用 mongoose
DB2报表查询参数为空时的写法
Async/Await模式中使用TransactionScope时,要设置参数为TransactionScopeAsyncFlowOption.Enabled枚举(转载)
mybatis 注解中使用 in list 参数查询的写法
Egg中使用egg-mongoose和常用的Mongoose 方法
MongoDb/Mongoose 中使用 aggregate 聚合管道
js中使用正则 判断 值是否为小数
使用quartz时,传入参数到job中使用记录
mongoose Schema写法
如何在Jenkins中使用日期参数(变量)
Spring中使用变量${}的方式进行参数配置
Linux中使用crontab时引用java环境变量
mybatis中使用<if>判断各类型参数是否为空
Qt信号参数中使用QVariantList时编译问题
shell在if中使用正则
python中使用正则
js正则中使用变量,并且变量中包含[ 等特殊字符
在Qt中使用mongoose.c以及mongoose.h报错解决办法
Mongoose 中使用 populate 实现关联查询
Egg 中使用 Mongoose 以及 Egg 中的 model
Bash Shell 脚本中使用 位置变量时候:提醒用户输入 位置变量的参数 以及位置变量参数的类型!
Struts2使用struts标签判断变量是否为空的写法
ajax发送请求时为url添加参数(使用函数)
vue调函数时参数this的写法
mongoose的使用
Mongoose使用
今日推荐
周排行
Access的四舍五入取整
8.23 前端学习过程
入门学习过程方向与漏洞复现总结:
操作分布式文件之八:如何批量并行读写远程文件和事务补偿处理
应邀出个教程 (搭建tensorflow跑网络环境)
Kubernetes之Pod控制器应用进阶
14-[mysql内置功能]--
HDU6212 区间dp 好题
VS2015生成代码图
验证手机号的工具类
每日归档
更多
2024-10-21(0)
2024-10-20(0)
2024-10-19(0)
2024-10-18(0)
2024-10-17(0)
2024-10-16(0)
2024-10-15(0)
2024-10-14(0)
2024-10-13(0)
2024-10-12(0)