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