常用的JSTL函数整理。
来源:互联网 发布:供销大数据 陈静红 编辑:程序博客网 时间:2024/06/06 09:49
函数名 函数说明 使用举例 fn:contains 判断字符串是否包含另外一个字符串 <c:if test="${fn:contains(name, searchString)}"> fn:containsIgnoreCase 判断字符串是否包含另外一个字符串(大小写无关) <c:if test="${fn:containsIgnoreCase(name, searchString)}"> fn:endsWith 判断字符串是否以另外字符串结束 <c:if test="${fn:endsWith(filename, ".txt")}"> fn:escapeXml 把一些字符转成XML表示,例如<字符应该转为< ${fn:escapeXml(param:info)} fn:indexOf 子字符串在母字符串中出现的位置 ${fn:indexOf(name, "-")} fn:join 将数组中的数据联合成一个新字符串,并使用指定字符格开 ${fn:join(array, ";")} fn:length 获取字符串的长度,或者数组的大小 ${fn:length(shoppingCart.products)} fn:replace 替换字符串中指定的字符 ${fn:replace(text, "-", "•")} fn:split 把字符串按照指定字符切分 ${fn:split(customerNames, ";")} fn:startsWith 判断字符串是否以某个子串开始 <c:if test="${fn:startsWith(product.id, "100-")}"> fn:substring 获取子串 ${fn:substring(zip, 6, -1)} fn:substringAfter 获取从某个字符所在位置开始的子串${fn:substringAfter(zip, "-")} fn:substringBefore 获取从开始到某个字符所在位置的子串 ${fn:substringBefore(zip, "-")} fn:toLowerCase 转为小写 ${fn.toLowerCase(product.name)} fn:toUpperCase 转为大写字符 ${fn.UpperCase(product.name)} fn:trim 去除字符串前后的空格 ${fn.trim(name)}
0 0
- 常用的JSTL函数整理。
- jstl中常用的EL函数
- JSTL标签和常用函数的使用
- JSTL常用函数
- JSTL常用函数总结
- JSTL常用函数
- delphi 整理的常用函数
- JSTL--functions及fmt函数的常用方法
- JSP标签JSTL(5)--常用的标签函数
- 整理JSTL(fn函数)来源internet
- Python 常用函数的 随时整理
- 一些常用的JS自定义函数整理
- C#一些常用函数的整理
- PHP中常用函数的整理
- 用Mindmanager整理的VB常用函数
- 一些常用的PHP函数(整理)
- jstl 的 functions函数
- JSTL函数的应用
- Windows驱动分发函数中IRP处理的一个细节
- Mysql java.sql.SQLException: The user specified as a definer ('ht_release'@'%') does not exist
- C语言中的复数
- Nginx模块开发入门
- Linux时间函数札记
- 常用的JSTL函数整理。
- ns-3关键概念(节点、应用、信道、网络设备、拓扑帮助)
- C/C++ 类库开发库参考【资料整理】
- Tomcat热部署的方法
- 2017阿里巴巴实习生招聘编程题
- JS代码压缩混淆工具使用说明
- ThinkPHP 中M方法和D方法的具体区别及其他方法介绍
- 齐博门户网站:解决百度ueditor支持iframe框架页面的视频播放问题
- context:component-scan标签的use-default-