Puppeteer 中文文档v25.8.0

Page.removeExposedFunction() 方法

该方法从页面的 window 对象中移除先前通过 $Page.exposeFunction() 添加的名为 name 的函数。

签名

class Page {
  abstract removeExposedFunction(name: string): Promise<void>;
}

参数

参数

类型

说明

name

string

返回值:

Promise<void>