摘要: 作用 用于处理字符串的一个对象。 常用方法 1、indexOf(str[,start]) var str = "hello world!"; console.log(str.indexOf("e"));//返回字符"e"的下标 console.log(str.indexOf("o",5));//返回 阅读全文
posted @ 2020-06-03 09:42 zonse 阅读(237) 评论(0) 推荐(0)