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>
🌐 Page.content() method
页面的完整 HTML 内容,包括 DOCTYPE。
🌐 The full HTML contents of the page, including the DOCTYPE.
🌐 Signature
class Page {
content(): Promise<string>;
}
返回:
Promise<string>