📌  相关文章
📜  javascript str 删除字符后的所有内容 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:56.782000             🧑  作者: Mango

代码示例1
var URL = "http://stackoverflow.com/questions/10767815/remove-everything-before-the-last-occurrence-of-a-character";
alert(URL.substring(0, URL.lastIndexOf("/") + 1));