摘要: indexOf indexOf indexOf 要查找具有另一个字符串的字符串,请使用indexOf函数: var i = "this is a test".indexOf("is"); console.log(i); 上面的代码生成以下结果。 substr和splice 要从字符串中提取子字符串, 阅读全文
posted @ 2017-07-13 10:01 四叶草2010 阅读(474) 评论(0) 推荐(0) 编辑