我从来都没有看过的一段Javascript代码,来看看。(线上等) 什么"节点",我也没有见过,不过好像是说id为0,parentid为-1.......好像应该是赋值的吧,但是不知道在什么地方用.好像和什么树有关系. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这是个类function TreeView(){ this.id = window.TV.length; window.TV[this.id] = this; this.target = "_self"; this.showLeaf = true; this.showAll = true; this.Nodes ={ 0 : { ID : 0, ParentID : -1, Text : null, Href : null, Image : null, childNodes: new Array() } };} 应该没有关系的,我试的两台机器都是MSIE 6.0.28.1106 ,并且安装的补丁都一样。但就是其中一台可以运行成功,但另一台就不行了。 您可以到Google上搜一下呀,这方面的资料还是多的..但一定要有耐心...楼主加油了!!!!! 返回一个数组对象ID = 0ParentID = -1Text = nullHref = nullImage = nullchildNodes= new Array()而 0 里就包含了这些内容var t = new TreeView();t.0.ID=0t.0.Text=null this.Nodes = temp0;function temp0(0) { is.0 = temp1;}function temp1(ID, ParentID, Text, Href, Image) { this.ID = ID; this.ParentID = ParentID; this.Text = Text; this.Href = Href; this.Image = Image; this.childNodes = new Array();} js 监听enter键后,无法打开新页面 可输入下拉框 自动匹配【editable select】 在IE浏览器中,这个警告怎么不让他弹出来呢? 菜鸟求救。。 想做个导航点击后添加样式。、、、 求2段 js代码 ext 问题, 急,请EXT高手帮忙 用正则表达式,怎么把input type="file"中的路径中的"\"转换成"/"? 求一简单的正则? 有点奇怪的需求要实现,大家帮帮忙,解决则再加100 100分求救,正则表达示的改写!(在线等待) 当找不到网页时如何给出自定义的错误提示? 自写函数如何自动关联到事件?
function TreeView()
{
this.id = window.TV.length;
window.TV[this.id] = this;
this.target = "_self";
this.showLeaf = true;
this.showAll = true;
this.Nodes ={ 0 : { ID : 0, ParentID : -1, Text : null, Href : null, Image : null, childNodes: new Array() } };
}
但就是其中一台可以运行成功,但另一台就不行了。
ID = 0
ParentID = -1
Text = null
Href = null
Image = null
childNodes= new Array()
而 0 里就包含了这些内容
var t = new TreeView();
t.0.ID=0
t.0.Text=null
is.0 = temp1;
}
function temp1(ID, ParentID, Text, Href, Image) {
this.ID = ID;
this.ParentID = ParentID;
this.Text = Text;
this.Href = Href;
this.Image = Image;
this.childNodes = new Array();
}