velocity foreach跳出循环

 

#foreach($item in $!list)

       #set( $c = $velocityCount+(-1))
                   #if($velocityCount==3)
                       #break     ##这个可以运行!!
                      // #continue ##也可以运行
                  #end
 #end
跳出循环 用stop 而不是continue
原文地址:https://www.cnblogs.com/iusmile/p/2670999.html