html如何实现在div内添加多个<a>标签,内容从后台获取

图片说明

$.each(function(item, index){
 $('div').append('<a href="item.href">item.title</a>');
});

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
...

<%
   response.setCharacterEncoding("utf-8");
   ArrayList students = (ArrayList)request.getAttribute("list");

%>

                      SID=${stu.sid}                    SName=${stu.sname}                    Score=${stu.score}                  
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
...

<%
   response.setCharacterEncoding("utf-8");
   ArrayList students = (ArrayList)request.getAttribute("list");

%>

<div>
    <c:forEach var="stu" items="${students}">
     <tr>
      <td>
       SID=${stu.sid}
      </td>
      <td>
       SName=${stu.sname}
      </td>
      <td>
       Score=${stu.score}
      </td>
     </tr>
    </c:forEach>
   </div>

用一下repeat标签应该很好解决