js遍历jstl数组

查询到在js中可以使用jstl

<script>
    <c:forEach items="${channel.templates}" var="template">
        alert("${template.id}");
    </c:forEach>
</script>