how to pass a variable to a regex

前端 未结 5 540
醉话见心
醉话见心 2020-12-21 09:59

I have a find statement like this

collSession.find({\"Venue.type\": /.*MT.*/}).toArray(function (err, _clsSession)
        {
            console.log(_clsSess         


        
5条回答
提交回复
热议问题