function get_previousSibling(n){ var x=n.previousSibling; while (x && x.nodeType!=1){ x=x.previousSibling; } return x; 查看完整描述