52,778
社区成员
发帖
与我相关
我的任务
分享Ext.onReady(function(){
var tree = new Ext.tree.TreePanel({
store: new Ext.data.TreeStore({
proxy: {
type: 'ajax',
url: '01-04-02.txt'
},
root: {
text: '我是根'
}
})
});
tree.render('tree');
});
ff中的显示
chrome上的显示
ff中的显示
chrome上的显示
[/quote]而且这一次控制台没报任何错误[
{text:'01',children:[
{text:'01-01',leaf:true},
{text:'01-02',children:[
{text:'01-02-01',leaf:true},
{text:'01-02-02',leaf:true}
]},
{text:'01-03',leaf:true}
]},
{text:'02',leaf:true}
]这个是读取的文件
这是官例在ff上的显示
这是官例在chrome上的显示,明显树形就有问题了啊!!!这到底是为什么???到底是它本身bug还是chrome的bug还是我电脑的问题,我试着用ext5,还是一样存在,
这是在ff上显示的效果,
这是在chrome上显示的效果,居然只显示根!!!