📜  子字符串 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:38.150000             🧑  作者: Mango

代码示例6
var str = "The MEAN stack is MongoDB, Express.js, AngularJS, and Node.js";
str.indexOf('MongoDB') !== -1 // true
str.indexOf('Java') !== -1 //false
str.indexOf('Node', 5) !== -1 //true