Loop through JSON in EJS

前端 未结 3 823
旧时难觅i
旧时难觅i 2020-12-02 22:12

I have codes in EJS below,


<% for(var i=0; i

        
3条回答
  •  孤街浪徒
    2020-12-02 22:56

    in my case, datas is an objects of Array for more information please Click Here

    <% for(let [index,data] of datas.entries() || []){  %>
     Index : <%=index%>
     Data : <%=data%>
    <%} %>
    

提交回复
热议问题