可能是一个简单的问题......如何访问backbone.js 视图中的变量?
initialize: function() { //all init here }
render: function() {//all render here }
printFoo: function(event) {
var printVar = this.changeFoo.changeVar // how do I access changeVar here???
}
changeFoo: function(event) {
var changeVar = $(e.currentTarget).attr('id');
}
如何访问 changeVar ?