js截取函数(indexOf,join等) 函数:indexOf() 功能:返回字符串中匹配子串的第一个字符的下标 复制代码 代码如下: var myString="JavaSc JavaScript 2022-04-09 214 点赞 3 评论 324 浏览