Remove trailing slash, if str ends with slash, it will be removed
删除斜杆后缀,如果字符串以斜杠结尾,则将删除
removeTrailingSlash('/foo/bar/') // => /foo/bar Copy
removeTrailingSlash('/foo/bar/') // => /foo/bar
Remove trailing slash, if str ends with slash, it will be removed
删除斜杆后缀,如果字符串以斜杠结尾,则将删除