Skip to main content
Version: 24.38.0

CustomQueryHandler 接口

🌐 CustomQueryHandler interface

语法

🌐 Signature

export interface CustomQueryHandler

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

queryAll

optional

(node: Node, selector: string) => Iterable<Node>

node 中搜索一些与给定 selector 匹配的 Nodes

🌐 Searches for some Nodes matching the given selector from node.

queryOne

optional

(node: Node, selector: string) => Node | null

node 中搜索与给定 selector 匹配的 Node

🌐 Searches for a Node matching the given selector from node.