vue.js

<li v-for="student in studentList">{{student.name}}</li>

jsp el表达式

<c:forEach var ="student" items = "studentList">

<li>${student.name}</li>

</c:forEach>

java语言的写法

for (Student student : studentList){

  System.out.println(student.getName);

}

05-08 15:28