interface NonDocumentTypeChildNode {
    nextElementSibling: null | Element;
    previousElementSibling: null | Element;
}

层级 (查看完整内容)

属性

nextElementSibling: null | Element

Returns the first following sibling that is an element, and null otherwise.

previousElementSibling: null | Element

Returns the first preceding sibling that is an element, and null otherwise.