zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Velocity 1.7 的一些新用法详解编程语言

编程语言 详解 用法 一些 1.7 velocity
2023-06-13 09:20:28 时间
#foreach( $customer in $customerList ) tr td $foreach.count /td td $customer.Name /td /tr #end /table

$velocityHasNext 的新用法

#foreach( $customer in $customerList ) 

 $customer.Name#if( $foreach.hasNext ),#end 

#end

退出foreach循环

## list first 5 customers only 

#foreach( $customer in $customerList ) 

 #if( $foreach.count 5 ) 

 #break 

 #end 

 $customer.Name 

#end

同时引入多个文件

#include( "one.gif","two.txt","three.htm" )

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/10375.html

cjava