() 方法返回true,只表明此字符串包含指定的char值序列
例子:
if(("s")){
("name字符串中包含s");
} else {
("name字符串中不包含s");
}
注:如果字符串包含s,返回true,否则返回false
() 方法返回true,只表明此字符串包含指定的char值序列
例子:
if(("s")){
("name字符串中包含s");
} else {
("name字符串中不包含s");
}
注:如果字符串包含s,返回true,否则返回false