无法直接通过"${topicList}"获取对象,需要通过<c:forEach>获取list里的对象:

var topicListArry = new Array(); 
    <c:forEach items="${topicList}" var="t"> 
        var topicObj = {};
        topicObj.id = '${t.id}';
        topicObj.title = '${t.title}';
        topicListArry.push(topicObj);
    </c:forEach> 

 JS获取session中的参数值

var returnPage = "<%=session.getAttribute("returnPage")%>";

 

相关文章:

  • 2021-09-29
  • 2021-08-13
  • 2022-02-12
  • 2022-01-25
  • 2022-12-23
  • 2021-12-28
  • 2021-10-01
  • 2021-08-03
猜你喜欢
  • 2018-10-25
  • 2022-01-24
  • 2021-07-07
  • 2021-05-20
  • 2022-12-23
相关资源
相似解决方案