list数组遍历

    xiaoxiao2022-08-06  6


    某平台价值19860元的编程课程资料免费领取【点我领取】


    list数组遍历: <% List<String[]> arrlist = new ArrayList<String[]>(); String []arr1 = {"1","11","111"}; String []arr2 = {"2","22","222"}; String []arr3 = {"3","33","333"}; arrlist.add(arr1); arrlist.add(arr2); arrlist.add(arr3); pageContext.setAttribute("arrlist",arrlist); %> <c:forEach var="list" items="${arrlist}"> <c:out value="${list[0]}"></c:out> <c:out value="${list[1]}"></c:out> <c:out value="${list[2]}"></c:out> <br/> </c:forEach>
    转载请注明原文地址: https://ju.6miu.com/read-1132091.html
    最新回复(0)