Puppeteer 中文文档v25.8.0

CustomQueryHandler 接口

签名

export interface CustomQueryHandler

属性

属性

修饰符

类型

说明

默认值

queryAll

optional

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

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

queryOne

optional

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

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