js截取最后一个斜杠的内容
var str = "/aaaa/bbbb/ccc/cccc/dddd"; var index = str .lastIndexOf("\/"); str = str .substring(index + 1, str .length);
————————
var str = "/aaaa/bbbb/ccc/cccc/dddd"; var index = str .lastIndexOf("\/"); str = str .substring(index + 1, str .length);
————————