标签: javascript backbone.js underscore.js
作为Backbone的新手,我尝试找到tpl文件的文档,(或下划线)来回答简单的问题,如:
<% for(var i in array) { %> <% var j = i+1 %> // here i want a sum of 2 integer but it is added as 2 strings <% } %>
答案 0 :(得分:0)
如果我正确地阅读了您正在寻找下划线模板语法链接的问题。
How to use underscore.js as a template engine?
http://www.bennadel.com/blog/2411-using-underscore-js-templates-to-render-html-partials.htm