JSTL fn:substringBefore() 函数

2025 年 3 月 17 日 | 阅读 1 分钟

fn:substringBefore() 函数返回字符串中特定子字符串之前的部分。它用于返回原始字符串中位于指定字符串值之前的部分。

包含 fn:substringBefore() 函数的语法是:

让我们看一个简单的例子来理解 fn:substringBefore() 函数的功能

输出

JSTL Function Tags13