String 方法indexOf()

indexOf()来测是否包含子字符串。

indexOf(sub, start) 

如果return 是-1 包含没有找到字段。

原文地址:https://www.cnblogs.com/kakaisgood/p/6375369.html