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

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

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