JS 去除字符串中的最后一个字符 var str = 'Hello World!'; str = str.substr(0,str.length-1); alert(str); posted on 2017-06-19 18:04 mthoutai 阅读( ...) 评论( ...) 编辑 收藏 转载于:https://www.cnblogs.com/mthoutai/p/7049906.html