javascript 遍历树节点
我对树进行绑定的时候,有给 树的title 数值!
我运行起来,,,鼠标放到节点上,也正常显示 title 值
运行后生产的HTNL 代码:
其中的一个节点HTML
<tr>
<td> <a id="DataTreeViewn23" > <img alt="折叠 大屏设置"/> </a> </td>
<td> <a onclick="TreeView_SelectNode(DataTreeView_Data, this,'DataTreeViewt23');" title="4" id="DataTreeViewt23">大屏设置 </a> </td>
</tr>
此代码 可看出 title是 有值的!
但 我JS 如下:
var TreeView = document.getElementById("DataTreeView");
for(var i=0;i <TreeView.childNodes.length;i++)
{
if(val == TreeView.childNodes[i].title)
{
}
}
title 值 始终 是空 ? 如何解决?谢谢
或者
那换个问题的方式
javascript 如何遍历树节点?
顶起来。。。
....
00000000000
哥们,你先看看TreeView.child
相关问答:
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
function check(){
if(document.form1.LXRMC.value=="" || document.form1.DZ.value=="" || document.form1.LXRMC.value==""
|| document.form1. ......
我模仿“实现网络蚂蚁、JETCAR等软件之IE右键菜单的“用xxxxxx下载”例子,”在ie右击菜单弹出一个应用程序,在我的机子上运行能实现效果,但是我把运行好的程序打包到另一机子上(“HKEY_CURRENT_USER\Software\Mic ......
JScript code:
<script language="javascript" type="text/javascript">
function $(e) {return document.getElementById(e);}
document.getElementsByClassName = function(cl) {
......