Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法可以使用ejs和jade(我喜欢EJS和Jade,无法决定使用哪个):
div <% for(var i = 0; i<things.length; i++){ %> <% = things[i] %> span!=things[i] + " Hi" <% } %>
最好的方法是通过jade然后ejs运行它吗?
谢谢, 阿里
div each thing in things != thing span!= thing + " Hi"
选择:
div - for(var i = 0; i < things.length; i++){ != things[i] span!= things[i] + " Hi" - }
建议用翡翠。我认为它更舒服,你可以用很少的玉代码生成很多 html。