MathTop

ends_with 函数

检验文本是否以指定后缀结尾。

语法

  • ends_with(text, suffix)
  • has_suffix(text, suffix)

参数与选项

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

示例

  1. 后缀检验ends_with('abcdef', 'ef')返回 true。