大虾看看这个程式有什么错误呀?调了半天啦!! 看不懂你的程序。不过错误出在下面var y=x.childNodes;//x.childNodes????,y是取不到值的for (var i=0;i<y.length;i++)//所以y.length出错 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 请教大虾, 如果程式改成如下,为什么错了啊?function count_(n){ var x=0; if (n.nodeType==1) x++; while (n.nextSibling!=null) { n=n.nextSiblig; x+=count(n); }} 程序目的是想统计HTML节点的个数,不知这样写法对否?请教大虾!<html><head><head><script language='javascript'>function count_(n){ var x=0; if (n.nodeType==1) x++; while (n.nextSibling!=null) { n=n.nextSiblig; x+=count(n); }}</script></head><body onload='alert("count:"+count(document)+"!")' ></body> </html> 求指导,关于iframe和div的onmouseover事件 JS禁用表单控件[select] javascript隐藏域赋值问题 js 怎么给标签添加事件 请高手们 帮我找下 弹出窗口 JS代码里的 出错地方把 这种分页除了js还能怎么做? PayPal接口和MSN接口问题 一个小问题,请教一下大家............. 来,进来听一首歌曲,帮我测试网速。谢谢! 我有一个问题,在javascript中,的open()中怎么才能使一个弹出的窗口不能最大化! 请问name和id有什么区别吗 免费源代码下载。
function count_(n)
{
var x=0;
if (n.nodeType==1)
x++;
while (n.nextSibling!=null)
{
n=n.nextSiblig;
x+=count(n);
}
}
<html>
<head>
<head>
<script language='javascript'>
function count_(n)
{
var x=0;
if (n.nodeType==1)
x++;
while (n.nextSibling!=null)
{
n=n.nextSiblig;
x+=count(n);
}
}</script>
</head>
<body onload='alert("count:"+count(document)+"!")' >
</body>
</html>