Skip to main content
Version: 23.11.1

Page.deleteCookie() 方法

¥Page.deleteCookie() method

警告:此 API 现已过时。

¥Warning: This API is now obsolete.

页面级 cookie API 已弃用。改用 Browser.deleteCookie()BrowserContext.deleteCookie()

¥Page-level cookie API is deprecated. Use Browser.deleteCookie() or BrowserContext.deleteCookie() instead.

签名

¥Signature

class Page {
abstract deleteCookie(...cookies: DeleteCookiesRequest[]): Promise<void>;
}

参数

¥Parameters

范围

类型

描述

cookies

DeleteCookiesRequest[]

Returns:

Promise<void>