各种编程语言都有相对应的注释,而velocity作为一种模板引擎也不例外,大体上velocity的主食类型分为如下几类:
单行注释:
## This is a single line comment.
多行注释:
#*
Thus begins a multi-line comment. Online visitors won’t
see this text because the Velocity Templating Engine will
ignore it.
*#
文档格式:
#**
This is a VTL comment block and
may be used to store such information
as the document author and versioning
information:
@version 5
@author
*#
单行注释:
## This is a single line comment.
多行注释:
#*
Thus begins a multi-line comment. Online visitors won’t
see this text because the Velocity Templating Engine will
ignore it.
*#
文档格式:
#**
This is a VTL comment block and
may be used to store such information
as the document author and versioning
information:
@version 5
@author
*#
本文介绍了Velocity模板引擎中使用的不同类型的注释,包括单行注释、多行注释及文档格式注释等,并提供了具体的示例代码。了解这些注释有助于更好地使用Velocity进行网页动态内容的生成。


被折叠的 条评论
为什么被折叠?



