📌  相关文章
📜  从字符串中删除最后一个单词 javascript 代码示例

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

代码示例6
var myString = "I want to remove the last word";
var mySplitResult = myString.split(" ");
var lastWord =  mySplitResult[mySplitResult.length-1]