Page.setDragInterception() 方法
🌐 Page.setDragInterception() method
警告:此 API 已经过时。
我们不再支持拦截拖动负载。请使用在 ElementHandle 上找到的新拖动 API 进行拖动(或者直接使用 Page.mouse)。
语法
🌐 Signature
class Page {
abstract setDragInterception(enabled: boolean): Promise<void>;
}
参数
🌐 Parameters
范围 🌐 Parameter | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|
enabled | boolean | 是否启用拖动拦截。 🌐 Whether to enable drag interception. |
返回:
Promise<void>