Skip to main content

ConsoleMessage.worker() 方法

🌐 ConsoleMessage.worker() method

发起控制台消息的 WebWorker,如果消息来源于一个框架,则为 null。

🌐 The WebWorker that initiated the console message, or null if the message originated from a frame.

语法​

🌐 Signature

class ConsoleMessage {
worker(): WebWorker | null;
}

返回:

WebWorker | 空