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)
李晓健
相关分类