Velocity截取字符串.

#set($str=$!currAreaName)

#if($str.length()>4)
#set($str=$str.substring(0,4))
#end
原文地址:https://www.cnblogs.com/dyakira/p/4504658.html