标签:
freemarker中间split字符串切割
1、简易说明
split切割:用来依据另外一个字符串的出现将原字符串切割成字符串序列
2、举例说明
<#--freemarker中的split字符串切割--> <#list "张三三,李思思,,王强,柳树,诸葛正我"?split(",") as name> "${name}" </#list> <#list "AhuAjiuAjkdsfAoionAjiuiAnujkkdfAkoijAmcjdhfjdfaAdhnfjdhfA"?
split("A") as num> "${num}" </#list>
<span style="white-space:pre"> </span> "张三三" "李思思" "" "王强" "柳树" "诸葛正我" "" "hu" "jiu" "jkdsf" "oion" "jiui" "nujkkdf" "koij" "mcjdhfjdfa" "dhnfjdhf" ""
标签:
原文地址:http://www.cnblogs.com/gcczhongduan/p/5031947.html