2013年10月9日
摘要: Velocity快速入门教程-脚本语法详解(转)1.变量(1)变量的定义:#set($name = "hello")说明:velocity中变量是弱类型的。当使用#set指令时,括在双引号中的字面字符串将解析和重新解释,如下所示:#set($directoryRoot = "www" )#set($templateName = "index.vm" )#set($template = "$directoryRoot/$templateName" )$template输出将会是:www/index.vm注:在velo 阅读全文
posted @ 2013-10-09 15:08 sidesky 阅读(369) 评论(0) 推荐(0) 编辑