Skip to main content
Version: 23.8.0

Page.setBypassServiceWorker() 方法

¥Page.setBypassServiceWorker() method

切换忽略每个请求的 Service Worker。

¥Toggles ignoring of service worker for each request.

签名

¥Signature

class Page {
abstract setBypassServiceWorker(bypass: boolean): Promise<void>;
}

参数

¥Parameters

范围

类型

描述

bypass

boolean

是否绕过 Service Worker 并从网络加载。

Returns:

Promise<void>