今天学习了vue.js的for循环显示,然而联想到了以前学习Java的循环输出、jsp的for each还有oracle游标嵌套循环
vue.js的for循环显示
<li v-for="student in studentList">{{student.name}}</li>
jsp的forEach循环输出
<c:forEach var="student" items="studentList">
<li>${student.name}</li>
</c:forEach
Java的循环输出
for(Student student : studentList){
System.out.println(student.getName());
}
oracle游标嵌套循环
CURSOR mycur IS
SELECT name FROM T_STUDENT;
DEGIN
--打开
OPEN mycur;
LOOP
FETCH mycur INTO V_NAME;
--无数据时退出
EXIT WHEN MYCHU%NOTFOUND;
--打印显示
END LOOP;
END;