📜  在字符串数组中搜索 javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:00.180000             🧑  作者: Mango

代码示例2
var myarr = ["I", "like", "turtles"];
var arraycontainsturtles = (myarr.indexOf("turtles") > -1);