0

このコードは適切に機能しません: 変数を渡す関数を呼び出しています これを行う正しい方法は何ですか? 何か提案はありますか?

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);
}

});

4

1 に答える 1

0

コードの修正

this.assocFolderColumnset(this.id);

および assocFolderColumnset で

,assocFolderColumnset: function (id){
    this.id = id;
    console.log(id);
}
于 2012-06-20T08:24:34.357 に答える