📅  最后修改于: 2022-03-11 15:04:31.430000             🧑  作者: Mango
var myString = "I want to remove the last word";
var mySplitResult = myString.split(" ");
var lastWord = mySplitResult[mySplitResult.length-1]