Skip to main content
Version: 24.38.0

Page.content() 方法

🌐 Page.content() method

页面的完整 HTML 内容,包括 DOCTYPE。

🌐 The full HTML contents of the page, including the DOCTYPE.

语法

🌐 Signature

class Page {
content(): Promise<string>;
}

返回:

Promise<string>