var Dtr = document.getElementsByTagName("tr"); 有这样一句代码:var Dtr = document.getElementsByTagName("tr");alert(Dtr.length);怎么打印不出Dtr的数量?请高人帮我解决,谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>bbbbbbbbbbbbbbbbb</title><script language="javascript"></script></head><body><script type="text/javascript"></script><form name="form1" id="form1" action="b.asp" method="post"><input name="submit" type="button" value="提交" onclick="sub_form(this.form);"/><input type="text" name="T1" id="T1" size="20"><input type="button" value="提交" name="B1" onclick="funcc()"><table> <tr> <td><input type="checkbox" onclick="func1(alert(this.rows[0].cellIndex))"> </td> <td><input type="checkbox" onclick="func1()"> </td> </tr> <tr> <td><input type="checkbox"> </td> <td><input type="checkbox"> </td> </tr></table><input type=checkbox name=chk1 Id=1><input type=checkbox name=chk1 Id=1><br>全:<input type=checkbox onclick=sel(1)><input type=checkbox name=chk2 Id=2><input type=checkbox name=chk2 Id=2><br>全:<input type=checkbox onclick=sel(2)></form><div id=test1 style='display=none'><table width="600" border="0" ><tr class="image_p_row"><td width="25%">111</td></tr></table></div><script language=javascript>var Dtr = document.getElementsByTagName("tr");alert('????');alert(Dtr.length);</script></body></html> 麻烦大家帮我看一下这个是如何加密的,谢谢 求助关于动态表格的问题 jsp 程序错误 小问题求助 js生成 DIV INPUT 求适合JAVASCRIPT新手转变成高手得书籍 一个页面转向另一个页面的问题! 能否用javascript代码隐藏或显示特定的内容? 如何精确定位? 数组去重 如何在iframe里打开的网页中调用javascript函数 如何判断页面中是否含有INPUT
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>bbbbbbbbbbbbbbbbb</title>
<script language="javascript">
</script>
</head><body>
<script type="text/javascript"></script>
<form name="form1" id="form1" action="b.asp" method="post">
<input name="submit" type="button" value="提交" onclick="sub_form(this.form);"/>
<input type="text" name="T1" id="T1" size="20">
<input type="button" value="提交" name="B1" onclick="funcc()">
<table>
<tr>
<td><input type="checkbox" onclick="func1(alert(this.rows[0].cellIndex))">
</td>
<td><input type="checkbox" onclick="func1()">
</td>
</tr>
<tr>
<td><input type="checkbox">
</td>
<td><input type="checkbox">
</td>
</tr>
</table><input type=checkbox name=chk1 Id=1>
<input type=checkbox name=chk1 Id=1>
<br>
全:
<input type=checkbox onclick=sel(1)><input type=checkbox name=chk2 Id=2>
<input type=checkbox name=chk2 Id=2>
<br>
全:<input type=checkbox onclick=sel(2)>
</form>
<div id=test1 style='display=none'>
<table width="600" border="0" >
<tr class="image_p_row">
<td width="25%">111</td>
</tr>
</table>
</div><script language=javascript>var Dtr = document.getElementsByTagName("tr");
alert('????');
alert(Dtr.length);
</script>
</body>
</html>