<%@page import="java.util.*"%> <% List listt= new ArrayList(); listt.add("a"); listt.add("b"); for(int el=0;el<listt.size();el++ ){ out.println(listt.get(el)); } %>
angularJS
var numbers = new Array(); numbers.push("true"); numbers[0]; $scope.people.indexOf(i)!=-1 //查找数组某个元素的索引 typeof() //判断类型 string.length() //取字符串的长度