calling method from action of controller in emberjs
问题 for example i have a controller like this : App.theController = Ember.ArrayController.extend({ methodA:funtcion() {}, actions: { methodB:function(){}, methodC:function(){} } }); my questions is : How can methodB call methodC How can methodA call methodB 回答1: You have to use this.send([methodName]) in order to get your methods called correctly: var App = Ember.Application.create({ ready: function() { console.log('App ready'); var theController = App.theController.create(); theController.send(