<c:if test="${not empty dicTypeList}">
<c:forEach items="${dicTypeList}" var="dt" varStatus="vs">//varStatus就是下标号
vs.conut;//这是从1开始
vs.index;//这是从零开始
${dt}//这个只能在当前forEach中使用
${clueList}//这个是在controller中添加的作用域,可以在任何地方使用,包括<javaScript>中使用
</c:forEach>
$("#id").each(function(index,obj){
})
jQuary中的循环关键字叫做each,不是froEach。
jQuary中只有index下标。