我在做一个树形列表的异步加载
var root = new Ext.tree.AsyncTreeNode({
text: '福建省',
level:0, draggable:false,
id:'root',
children:[{//子节点
text:'loading',//显示文字为loading
iconCls: 'loading',//使用图标为loading 在index.html style 中定义
leaf:true//是叶子节点,不再包含子节点
}]
});
上面红色标识的“level”属性是我自己添加的,为什么用alert(root.level)会显示Undefined....
求大神
var root = new Ext.tree.AsyncTreeNode({
text: '福建省',
level:0, draggable:false,
id:'root',
children:[{//子节点
text:'loading',//显示文字为loading
iconCls: 'loading',//使用图标为loading 在index.html style 中定义
leaf:true//是叶子节点,不再包含子节点
}]
});
上面红色标识的“level”属性是我自己添加的,为什么用alert(root.level)会显示Undefined....
求大神
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货