Skip to main content
Version: 24.38.0

Page.removeExposedFunction() 方法

🌐 Page.removeExposedFunction() method

该方法通过页面的 window 对象从之前添加的函数 $[Page.exposeFunction()](./puppeteer.page.exposefunction.md) 中移除名为 name 的函数。

🌐 The method removes a previously added function via $Page.exposeFunction() called name from the page's window object.

语法

🌐 Signature

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

参数

🌐 Parameters

范围

🌐 Parameter

类型

🌐 Type

描述

🌐 Description

name

string

返回:

Promise<void>