str="test";
str.indexOf(value:String, [startIndex:Number]); 查找字符串,类似的lastIndexOf为倒找字符串
str.substr(start, length); 截取字符串

参考来源:http://www.cnblogs.com/xuebin/articles/1296837.html

Related Posts: JavaScript-字符串相关函数 :