vue
const word = "テスト"
const query = ({test: "/" + word + "/"})
testDB.find(query).function(err, item) {
//hogehoge
}RegExpを使うことで解決した。
var word = "テスト"
var query = ({test: new RegExp(".*" + word + ".*" , "i")})
testDB.find(query).function(err, item) {
//hogehoge
}Related contents
TECH
2021.07.24
TECH
2020.07.24
2017.11.23
2017.11.12
2017.11.01
2017.09.29
2017.09.29
2017.02.26