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

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

代码示例1
var string = "Hello world!";
var n = string.search("w"); //now n equals 6