W3c标准 table的rows 建议使用 childNodes 去访问 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if (curindex % PerRowCount == 1 && typeof(GroupTB.rows[tmp]) == "undefined")以上代码在ie7.0正常运行。以下代码在ie8.0 beta1错误<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <script language="javascript" > function test() { var e = document.getElementById('groupListTB'); alert(e.rows);//此行ie8.0错误,错误就是意外访问,去掉文件第一行的声明就OK可以,但是同样的在firefox下可以正常执行 } </script></head><body> <div id="groupListDiv" width="100%"> <table id="groupListTB" width="100%"> <tr> </tr> <tr> </tr> </table> </div> <input type="button" value="click me" onclick="test();"></body></html> 文本框只能输入数字和小数点 当滚动条到最底部,自动加载页面,如何实现,类似微博那种 css , javascript 网页系统导入的问题! 【关于https】100分求解一个问题 我想问一下js下有测试网页load速度代码 js小问题? 在一次回调中的回调函数中发起另外一次回调的问题(ASP.net) 子类或孙类 如何 取父类下的属性或方法? 请教问题,javascript有没有等待函数 关于table行的增加,。删除和父子窗口的问题 javascript的数组问题 滚动代码求助
以上代码在ie7.0正常运行。以下代码在ie8.0 beta1错误<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" >
function test()
{
var e = document.getElementById('groupListTB');
alert(e.rows);//此行ie8.0错误,错误就是意外访问,去掉文件第一行的声明就OK可以,但是同样的在firefox下可以正常执行
}
</script>
</head>
<body>
<div id="groupListDiv" width="100%">
<table id="groupListTB" width="100%">
<tr>
</tr>
<tr>
</tr>
</table>
</div>
<input type="button" value="click me" onclick="test();">
</body>
</html>