<script language="javascript" type="text/javascript">
var arrayObj = new Array();<c:forEach var="t" items="${cards}" varStatus="c">
arrayObj['${c.index}'] = '${t.price}';
</c:forEach>
</script>
代码理解很简单就不注释了
<script language="javascript" type="text/javascript">
var arrayObj = new Array();</c:forEach>
</script>
代码理解很简单就不注释了