stringObject.indexOf(searchvalue,formindex); searchvalue在字符串首次出现的位置,位置是从0开始算的。 转载于:https://www.cnblogs.com/Neilisme/p/7656057.html