0
Backbone.js的內部的觀點我已經初始化和fillTerminal功能,如調用外部函數裏面Backbone.js的的觀點初始化方法
fillTerminal: function() {
// something to print
},
initialize: function() {
this.model.bind('change:attr', function(styleProperty, styleValue) {
// here I want to call fillTerminal function
});
}
我試着像fillTerminal()
和this.fillTerminal(
),但沒有成功。這是什麼解決方案?