var nodes = $('#basetree').tree('getChecked'); var cnode = ''; var fnode = ''; for ( var i = 0; i < nodes.length; i++) { cnode = nodes[i].text+nodes[i].id; fnode = $('#basetree').tree('getParent', nodes[i].target); alert(fnode.id); } var a = $(&quo
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> function getDom01(){ var div = document.querySelector(".box"); /