🌈 搜索
📅  最后修改于: 2022-03-11 15:04:33.509000             🧑  作者: Mango
var string = "foo"; var substring = "oo"; console.log(string.indexOf(substring) !== -1);