1. var str = "/asdasf/asfaewf/agaegr/trer/rhh";
    1. function lastStr(str){
    2. var index = str.lastIndexOf('\/');
    3. str = str.substring(index + 1,str.length);
    4. return str;
    5. }