MathTop

trim 函数

移除文本两端的空白字符。

语法

  • trim(text)
  • strip(text)

参数与选项

text文本值,通常写在引号中。

示例

  1. 移除两端空白trim(' abc ')返回 abc。