在字符串中查找字符串好几种方式,下面我们来看看1.使用indexOf方法var str = "sulao"; console.log(str.indexOf("su") != -1); //trueindexOf() 方...