http://www.w3school.com.cn/jsref/jsref_obj_string.asp
1.indexOf()
方法可返回某个指定的字符串值在字符串中首次出现的位置。
stringObject.indexOf(searchvalue,fromindex)
本文介绍JavaScript中字符串indexOf()方法的使用方法,此方法用于查找指定字符串首次出现的位置,并返回其索引值。基本语法为:stringObject.indexOf(searchvalue,fromindex)。
http://www.w3school.com.cn/jsref/jsref_obj_string.asp
1.indexOf()
方法可返回某个指定的字符串值在字符串中首次出现的位置。
stringObject.indexOf(searchvalue,fromindex)
1039
1230
2170

被折叠的 条评论
为什么被折叠?