私は MVC Extjs を使用しており、ボタンのクリック イベントで 2 つの異なる関数を実行したいと考えています。これまでのところ、これは私のコントローラーコードです:
Ext.define('MyApp.controller.myController', {
    extend: 'Ext.app.Controller',
    runFirst: function(button, e, options) {
        console.log('first function is running');
    },
    runSecond: function(button, e, options) {
        console.log('second function is running');
    },
    init: function(application) {
        this.control({
            "#myButton": {
                click: this.runFirst, runSecond //THIS PART DOESN'T WORK :(
            }
        });
    }
});
myButton をクリックしても実行runFirstできません。runSecond
ここからすべてのコードをダウンロードできます: https://github.com/nitzaalfinas/Extjs-run-2-function-with-one-click/tree/one
1 回のボタン クリックで 2 つの機能を実行する方法を教えてください。