Puppeteer 中文文档v25.8.0

ElementHandle.touchStart() 方法

此方法在需要时会将元素滚动到视图中,然后在元素的中心开始一次触摸。

签名

class ElementHandle {
  touchStart(this: ElementHandle<Element>): Promise<TouchHandle>;
}

参数

参数

类型

说明

this

ElementHandle<Element>

返回值:

Promise<TouchHandle>

表示已开始的触摸的 TouchHandle