0

ツリー構造を表すクラスを定義しました

GeographicalUnits = Ext.extend(Ext.tree.TreePanel, {
    title: 'Регион / Город',
    //rootVisible: false,
    initComponent: function () {
        this.root = {
            text: 'Tree Node',
            expanded: true
        };
        this.loader = {
            url: 'API/GeographicalUnits/GetNodes'
        };
        GeographicalUnits.superclass.initComponent.call(this);
    }
});

この方法でインスタンスを作成します。

Ext.getCmp('MainTabs').openTab(new GeographicalUnits({
                                     id: 'GeographicalUnitsCatalog'
                                 }));

サーバーの応答は次のとおりです。

[{"text":"geo1","children":[{"text":"sub1","leaf":true},{"text":"sub2","leaf":true}]}]

Chrome、firefox、Opera では動作しますが、IE 8 では動作しません。なぜですか?

4

1 に答える 1

0

IEのバグでした。奇妙ですが、HttpWatch をインストールすると問題が解決しました。

于 2011-03-15T14:27:04.353 に答える