摘要: indexOf() string.indexOf(searchValue) 根据给定的字符查索引,返回字符在字符串中首次出现的位置。如果没有要查询的字符返回 -1。也可以查询多个字符串,只返回第一个字符的索引。 lastIndexOf() string.lastIndexOf(searchValue 阅读全文
posted @ 2018-05-22 10:00 永夜mxp 阅读(118) 评论(0) 推荐(0)