0
app.controllers.test = new Ext.Controller({
someMethod: function(button, event) {
// prints 'undefined', as this == button, not test
console.log(typeof(this.someMethod));
}
});
的someMethod叫?这里有什么最佳实践?事件的处理和“本”在煎茶触摸
我曾经使用绑定为webOS开发时的Prototype方法,但不知道如何在Sencha Touch中进行此操作。