Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好,我想在创建树后从 dynatree 获取密钥。我用
$("#tree").dynatree("getTree").persistence.activeKey;
但它返回 null
var rootNode = $("#tree").dynatree("getRoot"); alert(rootNode.data.key); var children=rootNode .getChildren() ; for(i=0;i<children.length;i++){ alert("child key:"+children[i].data.key); }