摘要: //查找字符串 //1.chartAt()返回指定位置的字符例如第0位是哪个字母 var str = "hello world"; console.log(str.charAt(0)); //indexOf()检索字符串例如h在哪个位置,第一次出现的位置,没有返回-1 console.log(s... 阅读全文
posted @ 2019-05-21 17:48 巴拉巴拉·芭芭拉 阅读(2036) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-21 17:42 巴拉巴拉·芭芭拉 阅读(532) 评论(0) 推荐(0) 编辑