2010-06-23 12 views
1

Puis-je obtenir la méthode interne Velocity?Puis-je obtenir la méthode interne Velocity?

#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) 

Je ne connais pas la méthode ajouter, supprimer la méthode, comment je peux obtenir la méthode? Comment je sais qu'il a une autre méthode?

Répondre

1

Les tableaux dans Velocity sont adossés à java.util.ArrayList, donc toute méthode de ArrayList fonctionnera.