Return a new string with removed white space from the end of the original string
返回一个新字符串,该字符串从原始字符串的末尾删除了空白
'Testing'.trimEnd() //'Testing'
' Testing'.trimEnd() //' Testing'
' Testing '.trimEnd() //' Testing'
'Testing '.trimEnd() //'Testing'
Return a new string with removed white space from the end of the original string
返回一个新字符串,该字符串从原始字符串的末尾删除了空白
'Testing'.trimEnd() //'Testing'
' Testing'.trimEnd() //' Testing'
' Testing '.trimEnd() //' Testing'
'Testing '.trimEnd() //'Testing'