var tree = mini.get("demoTree");
var node = tree.getSelectedNode();
var nodeUser = tree.getNode("My Project");
我想知道当前选中的node是否是页面上显示为My Project的节点,但貌似tree.getNode方法报$null报错。
html :<span id="MyProject" expanded="false">My Project</span>
var tree = mini.get("demoTree");
var node = tree.getSelectedNode();
alert(node.getIdField());无定义
alert(node.getId();无定义
alert(node.id);null
alert(node.idField);null