String.trim_end

String.trim_end

String.trim_end

功能

去除字符串末尾的空白字符。

语法

参数

无。

返回值

类型说明
String去除末尾空白后的新字符串。

代码示例

注意事项

  • 不修改原字符串。