Sencha touch 2 sencha触摸2按钮,在工具栏中,点击事件未触发

Sencha touch 2 sencha触摸2按钮,在工具栏中,点击事件未触发,sencha-touch-2,Sencha Touch 2,我一直在关注这个sencha touch,但是,我无法启动tap事件,我尝试了使用id和不使用id来获取引用。但是没有运气。这是我的代码 视图: 控制器: Ext.define("NotesApp.controller.Notes", { extend: "Ext.app.Controller", config: { refs: { notesListView: 'NotesListView',

我一直在关注这个sencha touch,但是,我无法启动tap事件,我尝试了使用id和不使用id来获取引用。但是没有运气。这是我的代码

视图:

控制器:

    Ext.define("NotesApp.controller.Notes", {
         extend: "Ext.app.Controller",
         config: {
            refs: {
                notesListView: 'NotesListView',
                newNoteBtn: 'notesListView button[action=addNote]'
            },
            control: {
                tap:  "onNewNote"
            }
        },
        onNewNote: function(){
            console.log("New button has been tapped!!");
        },
        launch: function() {
            this.callParent();
            console.log("Launch in Notes.js");
        },
        init: function(){
            this.callParent();
            console.log("Init in Notes.js");
        }
    });
当我点击工具栏上的“新建”按钮时,似乎没有任何事件触发,因为控制台日志中没有任何内容。我试过Safari、Chrome和Firefox。没有乐趣。你能快速看一下,看看是否能找到我缺少的东西吗?有没有办法调试Sencha Touch应用程序?

尝试使用:

newNoteBtn: 'button[action=addNote]'
或:

而不是:

newNoteBtn: 'notesListView button[action=addNote]'
newNoteBtn: '#new-note-btn'
newNoteBtn: 'notesListView button[action=addNote]'