前端迭代取出 后台map返回的数据

<body>
    <div th:each="map : ${response}">
        <span th:text="${map.key}">教授</span>
        <div th:each="list : ${map.value}">
            <figure>
                <img th:attr="src=@{list.downloadLink}">
                <figcaption th:text="${list.title}">team1.jpg</figcaption>
            </figure>
        </div>
    </div>
</body>

map<String,List>

DEBUG com.li.controller.ManageController - 
{通知公告= [NewsList{htmlid=238, pid='1', id='1', title='JAVA', date='2017-08-09', titleImage='http://www.shiyanshi.com/123.jpg', type='通知公告'}],
通知公告1=[NewsList{htmlid=239, pid='1', id='1', title='JAVA', date='2017-08-09', titleImage='http://www.shiyanshi.com/123.jpg', type='通知公告1'},
NewsList{htmlid=240, pid='1', id='1', title='JAVA', date='2017-08-09', titleImage='http://www.shiyanshi.com/123.jpg', type='通知公告1'}]}

 

posted @ 2018-06-12 19:58  1367356  阅读(4943)  评论(0)    收藏  举报