How to use the c tag correctly in js? This article will share a small piece of code with you, I hope it can help you.
<script type="text/javascript"> <c:forEach items="${entityInfo.unitList }" var="unit" varStatus="status"> -------------- </c:forEach> </script>
Must be placed under the script tag to avoid errors. It cannot be written in a separate js file, otherwise an error will be reported.
The above is the detailed content of How to use c tag correctly in js. For more information, please follow other related articles on the PHP Chinese website!