如图:
初学angular,这个怎么用?
public class StudentsAction implements RequestAware { @Autowired private StudentService studentService; private Map request; @Override public void setRequest(Map map) { this.request = map; } public String list() { request.put("stu", studentService.getAllStudents()); return "list"; }
然后在ng-repeat中如何获取stu的值呢??
我这样获取不到呢
{{d.id}} {{d.name}} {{d.age}} {{d.address}}
-
About us
Disclaimer
Sitemap
-
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!
RequestAware
没用过,不过你的问题应该不在这,而在于structs2
中怎么返回json
Data is given to the front end, look here