Coolite tree

function view(){
var selectedItem = tree.getSelectionModel().getSelectedNode();
if (!selectedItem) {
selectedItem = tree.getRootNode();
}
var parentId = selectedItem.id;
task(parentId);
};//更新结束

TreePanel1.getSelectionModel().getSelectedNode().id
http://www.coolite.com/forums/Topic2121-16-1.aspx

你可能感兴趣的:(tree)