tags:

views:

19

answers:

1

Can I get Velocity inner Method?

#set ( $scripts = [ "https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js" ] )
#foreach($URL in $scripts)
    <script type="text/javascript" src="$URL"></script>
#end

$scripts.add("http://www.cnr.cn")
$script.remove(0)

I dont know method add,remove method ,How I can get method?How I know it has some other method?

+1  A: 

Arrays in Velocity are backed by java.util.ArrayList, so any method from ArrayList will work.

serg