ConsoleMessage.page() 方法
🌐 ConsoleMessage.page() method
控制台消息来源的 页面,如果消息来自 worker 或框架外部的上下文,则为 null。
🌐 The Page that the console message originated from, or null if the message originated from a worker or outside of a frame context.
语法
🌐 Signature
class ConsoleMessage {
page(): Page | null;
}
返回:
页面 | 无