엄지월드

js Map 출력 본문

Front

js Map 출력

킨글 2017. 10. 8. 11:51
반응형

<%

HashMap<String, Integer> map = new HashMap<String, Integer>();

map.put("a",100);

map.put("b",200);


session.setAttribute("map", map);

%>



JSTL 

<c:forEach var="i" items="${map}" >  

${i.key} = ${i.value}

</c:forEach>


JQUERY

$.each(values, function(index, value){

innerHTML += value;

});



Comments