我正在使用主干并且对我的代码做了一点轻微(看似与性能无关)的更改。我只更改了我的视图被追加到的目的地。
工作渲染功能
render: function () {
this.$el.html(this.template(this.model));
$('.wide-container').append(this.el);
}
无效渲染功能(崩溃浏览器)
render: function () {
this.$el.html(this.template(this.model));
$('.another-container ul').append(this.el);
}
每个this.el都是<li>
标记(如果有用)。
非常感谢任何帮助或见解。