判断 字符串中 有无某段字符
// Use `.includes()`, rather than `.indexOf()`, when checking for existence.
str.includes(searchString[, position]) // 方法用于判断一个字符串是否包含在另一个字符串中,根据情况返回 true 或 false。// position可选从当前字符串的哪个索引位置开始搜寻子字符串,默认值为0。
// 如果当前字符串包含被搜寻的字符串,就返回true;否则返回false。 (区分大小写)

ummmmm

浙公网安备 33010602011771号