var
str =
"/asdasf/asfaewf/agaegr/trer/rhh"
;
var
index = str .lastIndexOf(
"\/"
);
str = str .substring(index + 1, str .length);
alert(str );
时间: 2025-01-16 03:15:57
var
str =
"/asdasf/asfaewf/agaegr/trer/rhh"
;
var
index = str .lastIndexOf(
"\/"
);
str = str .substring(index + 1, str .length);
alert(str );