function siblings(elem) { var r = []; var n = elem.parentNode.firstChild; for (; n; n = n.nextSibling) { if (n.nodeType === 1 && n !== elem) { r.push(n); } } return r;}
添加回答
举报
0/150
提交
取消