var tree = mini.get("tree1");
var pnode = tree.getNode("all");
var newNode = [{ vip_no: '1', vip_name: '我是一颗小小的石头' }, { vip_no: '2', vip_name: '我是一颗小小的石头'}];
tree.addNodes(newNode, pnode);
function getSelectedNode() {
var tree = mini.get("tree1");
alert(tree);
var node = tree.getSelectedNode();
if (node) {
alert(node.text);
} else {
alert("请选中节点");
}
}