xyTree/NodeNormal.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function() {
if (!window.xyTree)
window.xyTree = {};
})();
xyTree.NodeNormal = function(name) {
this.name = name ;
this.id;
this.parent;
this.previous;
this.next;
this.child = [];
this.level = 0;
this.tree;
this.xuhao = 0;
this.displaychild = false;
this.zhankaiguo = false;
this.img;
}
xyTree.NodeNormal.prototype.toString = function() {
var s = '[' + this.id + ']=[' + this.name + ']'
+ '[level=]' + this.level;
return s;
};
xyTree.NodeNormal.prototype.innerhtml = function() {
var div = document.createElement('div');
var qj = this.tree.objectname;
div.id = qj + this.xuhao;
div.className = 'qiguai';
var current = this;
var oFragment = document.createDocumentFragment();
for (var i = this.level - 1; i > 0; i--) {
var img = document.createElement('img');
var qq = this.getparent(i);
img.src = this.getimgkongge(qq);
img.align = "absbottom";
oFragment.appendChild(img);
}
后面还有 225 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
