foreach里怎么定义变量

2024-12-29 17:36:21
推荐回答(1个)
回答1:

<%
String[] colors = new String[] { "red", "green", "yellow", "black","silver" };
pageContext.setAttribute("colors", colors);
%>