Documentation
    Preparing search index...

    Function hasSelectorLoopParent

    • 返回某元素及其所有父元素是否存在指定选择器

      Parameters

      • node: HTMLElement
      • selector: string
      • OptionalstopNode: string | HTMLElement

        用于在已知范围内查找时优化性能

      Returns boolean