Node.js: String contains another string
This question already has an answer here:
你可以使用.indexOf()
:
if(str.indexOf(substr) > -1) {
}
链接地址: http://www.djcxy.com/p/2042.html
上一篇: 如果变量包含
This question already has an answer here:
你可以使用.indexOf()
:
if(str.indexOf(substr) > -1) {
}
链接地址: http://www.djcxy.com/p/2042.html
上一篇: 如果变量包含