使用fn标签处理el表达式的值

来源:互联网 发布:廖雪峰python教程mobi 编辑:程序博客网 时间:2024/06/10 03:37

1.fn:replace 替换字符串中指定的字符

${fn:replace(text,"-", "•")}

2.fn:substring 获取子串

${fn:substring(text,6, 9)}

3.n:toLowerCase 转为小写

${fn.toLowerCase(product.name)}

  • 1
  • 1

4.fn:toUpperCase 转为大写字符

${fn.UpperCase(product.name)}

5.fn:trim 去除字符串前后的空格

${fn.trim(name)}


转自:http://blog.csdn.net/xlgen157387/article/details/47272421

原创粉丝点击