在js中是不能直接对后台传过来的list进行处理的,但是在js中是可以进行 var arry=new Array();<c:forEach items="${newlist }" var="item"> arry.push("${item}"); </c:forEach>,把其转化成数组