
freemarker
liuwang888
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Freemarker 常用内置函数和用法
Freemarker 常用内置函数和用法 一、 Sequence的内置函数 1. sequence?first 返回sequence的第一个值。 2. sequence?last 返回sequence的最后一个值。 3. sequence?reverse 将sequence的现有顺序反转,即倒序排序 4. sequence?size 返回seque...原创 2011-11-19 10:04:18 · 118 阅读 · 0 评论 -
Freemarker语法
1概念 2指令 if, else, elseif switch, case, default, break list, break include Import compress escape, noescape assign global setting macro, nested, return t, lt, rt 3一些常用方法或注意事项 表达式转换类 数字循环 对浮点取整数 给变量默认值 ...原创 2011-11-19 10:06:17 · 182 阅读 · 0 评论 -
Freemarker学习
http://zwllxs.iteye.com/category/119428原创 2011-11-19 10:13:59 · 91 阅读 · 0 评论 -
freemarker遍历map对象实例
freemarker遍历map对象实例,这个与遍历list对象有点不同。当Map里面的key 是Object(String,Integer,etc)等要通过以下的方式来得到。 code 1 2 3 4 5 6 <#list testMap?keys as testKey> < option value="${testKe...原创 2012-11-21 15:50:05 · 669 阅读 · 0 评论 -
freemarker遍历时获取索引值
<#list testMap?keys as testKey> 索引值: ${testKey_index} < option value="${testKey}" > ${testMap.get(testKey)} </option>...原创 2012-11-21 15:54:44 · 3199 阅读 · 0 评论