freemarker该阵列
freemarker该阵列
1、设计思路
(1)声明一个数组
(2)打印数组中的元素
2、设计源代码
<#--freemarker数组--> <#assign nums=[12,34,56,78,90,54,23,94,102]/> <#list nums as num> ${num} </#list>
3、设计结果
12 34 56 78 90 54 23 94 102
版权声明:本文博客原创文章。博客,未经同意,不得转载。
freemarker该阵列
1、设计思路
(1)声明一个数组
(2)打印数组中的元素
2、设计源代码
<#--freemarker数组--> <#assign nums=[12,34,56,78,90,54,23,94,102]/> <#list nums as num> ${num} </#list>
12 34 56 78 90 54 23 94 102
版权声明:本文博客原创文章。博客,未经同意,不得转载。