阅读背景:

在mongoose中使用正则,参数为变量时的写法

来源:互联网 

const word = ctx.params.word

userModel.find({"name":{$regex: eval(`/${word}/ig`)}})userModel.find({"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: