c:forTokens

一、c:forTokens标签 循环后台传回的字符串 用逗号分割而且简单判断 spa

<c:forTokens items="${event.businesscodename}" delims="," varStatus="status1" var="bname" begin='0' end='3'> code

<c:if test="${status1.index<1}"> <c:choose> <c:when test="${status1.last}"> ${bname} </c:when> <c:otherwise> ${bname}, </c:otherwise> </c:choose> </c:if>   <c:if test="${status1.index ==1}">   ${bname } <font color='red'>...</font>&nbsp;&nbsp;   <input type='button' name='more' id='more' value='更多' onclick='morevalue("${event.businesscodename}")'/>   </c:if>    </c:forTokens>
相关文章
相关标签/搜索
本站公众号
   欢迎关注本站公众号,获取更多信息