bxdlatin

导航

2013年12月1日 #

velocity语法

摘要: 1.变量(1)变量的定义:#set($name = "hello")说明:velocity中变量是弱类型的。当使用#set指令时,括在双引号中的字面字符串将解析和重新解释,如下所示:#set($directoryRoot = "www" )#set($templateName = "index.vm" )#set($template = "$directoryRoot/$templateName" )$template输出将会是:www/index.vm注:在velocity中使用$2.5这样的货币标识是没有问题得 阅读全文

posted @ 2013-12-01 21:53 bxdlatin 阅读(344) 评论(0) 推荐(0) 编辑