JSTL标签分类

<c:>核心标签库:共有13个,功能分4类

  1、表达式控制标签: out、set、remove、catch

  2、流程控制标签: if、choose、when、otherwise

  3、循环标签: forEach、forTokens

  4、URL操作标签: import、url、redirect

<fmt:>格式化标签库:

  1、格式化标签: formatNumber、formatDate、parseDate、parseNumber、setTimeZone、timeZone

  2、国际化标签: setLocale、requestEncoding、bundle、message、param、setBundle

<fn:>Function标签库:

  1、fn:contains(String source, String target) ---------boolean;(包含)

  2、fn:containsIgnoreCase(String source, String target) -------boolean; (包含、忽略大小写)

  3、fn:startsWidth(String source, String target) ------boolean;(以...开头)

  4、fn:endsWidth(String source, String target) ------boolean;(以...结尾)

  5、fn:indexOf(String source, String target) ------int;(查找)

  6、fn:replace(String source, String before, String after) ------String;(替换)

  7、fn:substring(String source, int beginIndex, int endIndex) ------String;(截取、前包后不包)

  8、fn:substringBefore(String source, String target) ------String;(之前)

  9、fn:substringAfter(String source, String target) ------String;(之后)

  10、fn:split(String source, String delimiter) ------String[];(分隔符)

  11、fn:join(String source[], String separator) ------String;

  12、fn:toLowerCase(String source) ------String;(小写)

  13、fn:toUpperCase(String source) ------String;(大写)

  14、fn:trim(String source) -----String;(去空格)

  15、fn:escapeXml(String source) ------String;(字符转义)

  16、fn:length(source) ------int;(个数)

  

转载于:https://www.cnblogs.com/caicaidandan/p/4720392.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值