indexof()函数

js 判断字符串是否包含某字符串,String对象中查找子字符,indexOf

成功,返回索引值,失败返回 -1。

转载:

http://www.cnblogs.com/fishtreeyu/archive/2011/03/07/1975613.html

posted @ 2017-07-20 09:27  万里冰封  阅读(466)  评论(0编辑  收藏  举报