var
str =
"/asdasf/asfaewf/agaegr/trer/rhh"
;
var
index = str .lastIndexOf(
"\/"
);
str = str .substring(index + 1, str .length);
alert(str );
时间: 2024-11-04 22:01:05
var
str =
"/asdasf/asfaewf/agaegr/trer/rhh"
;
var
index = str .lastIndexOf(
"\/"
);
str = str .substring(index + 1, str .length);
alert(str );