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