将我的Web应用程序从下划线1.6升级到1.7时,我收到以下错误"列表未定义".使用下划线1.6时效果很好.有任何想法吗?
//acquire the list template
$.get('tpl/listTpl.html', function(templates) {
//run underscore js on the list template and pass in the full collection of models
var template = _.template(templates, {list:app.collections.list.models});
//load the underscore template into the DOM
that.$el.html(template);
Run Code Online (Sandbox Code Playgroud)
});
templates upgrade backbone.js underscore.js underscore.js-templating