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)
添加回答
举报
0/150
提交
取消