JavaScript String 对象 ,字符串函数

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/eddy23513/article/details/81530463

http://www.w3school.com.cn/jsref/jsref_obj_string.asp
1.indexOf()

方法可返回某个指定的字符串值在字符串中首次出现的位置。
stringObject.indexOf(searchvalue,fromindex)

猜你喜欢

转载自blog.csdn.net/eddy23513/article/details/81530463