var str = 'A/B/C/D';
var index = str.lastIndexOf("/"); //最后出现的位置
var str2 = str.substr(index+1); //截取指定位置的字符串