foreach-array.cmp

来自「velocity官方工具包 包括各种JAR包 示例 文档等」· CMP 代码 · 共 32 行

CMP
32
字号


--Foreach with an array. 2 blank lines follow


<table>
    <tr>
        <td>This is first element and it is the 1 item</td>
    </tr>        
    <tr>
        <td>This is second element and it is the 2 item</td>
    </tr>        
</table>

--Foreach with a null array.  1 blank line follows

<table>
</table>

-- And when we declare the array in-template :

Choose among :
	red
	blue
	green

 $foo : a

 $foo2 : bar


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?