while (x && x.nodeType!=1)
    function get_nextSibling(n){
        var x=n.nextSibling;
        while (x && x.nodeType!=1){
            x=x.nextSibling;
        }
        return x;
    }这段代码中的判断条件语句
while (x && x.nodeType!=1)
其中把 x 加入判断为何解?
while (x.nodeType!=1)
这样可不可以?我试了,在所试的范围内也可以。但是还是想知道为什么。

 
                             
                             
                             
                            