标签: javascript arrays foreach
我想从同一dogsbread运行dogsname和for each数组。我可以这样做,如果没有,那么如何在同一行打印foreach的两个输出?
dogsbread
dogsname
for each
foreach
<% dogsbread.forEach(function(dogsbread){ %> <h1><%= dogsbread %></h1> <%});%> <% dogsname.forEach(function(dogsname){ %> <h1><%= dogsname %></h1> <%});%>