Velocity 的macro(1)
http://verran.iteye.com/blog/125200
Velocity macro-(2)
http://verran.iteye.com/blog/125215
Velocity语法强化56之强大的宏
http://blog.csdn.net/anders_zhuo/article/details/9494799
vm
#macro(d $count)
#if($count>0)
<p/>
#set($count=$count - 1)
#d( $count )
#end
#end
#d(3)
输出:
<p/>
<p/>
<p/>
注意:##set($count=$count - 1) , 运算里面的空格是必须的。
Velocity 的macro递归
猜你喜欢
转载自panyongzheng.iteye.com/blog/1882623
今日推荐
周排行