dTree.prototype.setCS = function(node) { var lastId; for (var n=0; n<this.aNodes.length; n++) { if (this.aNodes[n].pid == node.id) node._hc = true; if (this.aNodes[n].pid == node.pid) lastId = this.aNodes[n].id; }
=================
请问这里的 this.aNodes[n].pid == node.id) node._hc = true; 啥意思啊 其中 ---->aNodes 是什么呀----> pid 是什么呀
=================
请问这里的 this.aNodes[n].pid == node.id) node._hc = true; 啥意思啊 其中 ---->aNodes 是什么呀----> pid 是什么呀
并且每一个节点有一个pid属性代码不全,无法解释太深
这个应该是判断当前结点是否为叶子结点aNodes---->all nodes所有树结点的意思pid---->parent id父结点的id