标签:
var str = "/asdasf/asfaewf/agaegr/trer/rhh";
var
str =
"/asdasf/asfaewf/agaegr/trer/rhh"
;
index = str .lastIndexOf(
"\/"
);
str = str .substring(index + 1, str .length);
alert(str );
js 获取字符串中最后一个斜杠后面的内容
原文地址:http://www.cnblogs.com/foreverfendou/p/5830346.html