Model view controller Extjs4如何使用参数调用函数?

Model view controller Extjs4如何使用参数调用函数?,model-view-controller,function,extjs,Model View Controller,Function,Extjs,这段代码不能正常工作:我调用传递变量的函数 正确的方法是什么?有什么建议吗 Ext.define('DigitalPaper.view.DirTree' ,{ extend: 'Ext.TreePanel', requires: ['Ext.window.MessageBox'], id: "DirTree", store: 'DirTree', alias : 'widget.DirTree', title : 'Cartelle', r

这段代码不能正常工作:我调用传递变量的函数 正确的方法是什么?有什么建议吗

Ext.define('DigitalPaper.view.DirTree' ,{
    extend: 'Ext.TreePanel',
    requires: ['Ext.window.MessageBox'],
    id: "DirTree",
    store: 'DirTree',
    alias : 'widget.DirTree',
    title : 'Cartelle',
    rootVisible: true,
    useArrows: true,
    scope: this,
    selectNode: undefined,

initComponent: function() {
    //HERE: 
    this.assocFolderColumnset(id);

    this.callParent(arguments);
}

,assocFolderColumnset: function (id){
    console.log(id);
}
})

对代码的更正

this.assocFolderColumnset(this.id);
在assocFolderColumnset中

,assocFolderColumnset: function (id){
    this.id = id;
    console.log(id);
}