? var z=document.getElementsByTagName("li")[3]? ? document.write(z.nodeName);? ? document.write("=")? ? document.write(z.innerHTML+"<br/>")? ??? ? function get_previousSibling(n){? ? ? ? var x=n.previousSibling;? ? ? ? while(x&&x.nodeType!=1){? ? ? ? ? ?x= x.previousSibling? ? ? ? }? ? ? ? return x? ? }? ??? ? var d=get_previousSibling(z);? ? document.write(d.nodeName);? ? document.write("=")? ? document.write(d.innerHTML)
為什么變量d的內(nèi)容輸出不出來,我什么地方錯了
qq_小輝_4
2017-08-02 11:17:30