0
我已經定義其表示樹狀結構ExtJS的TreePanel中不工作在IE 8
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);
}
});
I類創建一個實例是這樣的:
Ext.getCmp('MainTabs').openTab(new GeographicalUnits({
id: 'GeographicalUnitsCatalog'
}));
服務器響應是:
[{"text":"geo1","children":[{"text":"sub1","leaf":true},{"text":"sub2","leaf":true}]}]
它適用於Chrome,Firefox和Opera,但在IE 8中不起作用。爲什麼?
IE8開發人員工具(點擊F12)是否報告任何錯誤? – ChrisR 2011-03-14 14:21:21