변수를 한 뷰에서 다른 뷰로 전달하려고하면 두 번째 뷰에서 항목이 정의되지 않습니다.Backbone.js - 값이 뷰에서 다른 뷰로 전달되지 않습니다.
이 내 게시물이
Stream.Views.PostEntry = Backbone.View.extend({
template: JST['streams/post'],
render: function(){
console.log(entry); // Error: 'entry is not defined'
this.$el.html(this.template({post: entry}));
return this;
}
});
너무 짧습니다. –