📅  最后修改于: 2022-03-11 15:01:56.782000             🧑  作者: Mango
var URL = "http://stackoverflow.com/questions/10767815/remove-everything-before-the-last-occurrence-of-a-character";
alert(URL.substring(0, URL.lastIndexOf("/") + 1));