我的入口方法代码:@At @Ok("jsp:admin-unit") public Object findAllDepartment(){ List departments = deptOpService.query(Cnd.where("1","=","1")); return new NutMap().setv("unitList", departments); }
JSP:页面:.js\n \n
js\n \n
页面上, 名字叫obj, 所以用 obj["unitList"] 就能取到了
<c:forEach var="item" items="${obj.unitList}">