velocity foreach跳出循环

 

#foreach($item in $!list)

       #set( $c = $velocityCount+(-1))
                   #if($velocityCount==3)
                       #break     ##这个可以运行!!
                      // #continue ##也可以运行
                  #end
 #end
跳出循环 用stop 而不是continue
posted @ 2012-09-04 21:26  _zao123  阅读(7969)  评论(2)    收藏  举报