以下是摘录。
<% console.log('.................. upper count', count); %> //count is undefined...
//data object is getting from node script
<% for(var i=0; i < data.length; i++) { %>
<tr>
<td>data</td>
</tr>
<% var count = i + 1;
console.log("................", count); //Here I got count = 2
%>
<% } %>
有没有办法在for循环中从count开始的第一行打印count值?