📄 array.vm
字号:
#*@test array.vmThis template is used for Velocity regression testing.If you alter this template make sure you change thecorresponding comparison file so that the regression test doesn't fail incorrectly.*##set( $foo = [$this, $that, $woog.Bar, [$this, "this"] ])$provider.concat(["a", "b", "c"])#set($foo = "a")$provider.objConcat( [1..2] )$provider.objConcat( ["a","b"] )$provider.objConcat( [1..2 ] )$provider.objConcat( [$foo] )$provider.objConcat( [ $foo] )$provider.objConcat( [$foo ] )#macro( showme $array ) #foreach( $i in $array ) > $i <#end#end#set($woog = "a")#set($floog = "b")#showme( [ $woog] )#showme( [ $woog,$floog] )#showme( [1..2])#showme( [1 ..2 ])## and more....$p.m( [ $A.g(1), $title ])$pp.messageFormat( [ $Abc.get($sti), $title, $ti, $sti, 'bodytext' ], $subtopicTemplate)#set ($args = [ $pp.nQuestions, $pass, $units ] )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -