ConsoleMessage 类
🌐 ConsoleMessage class
ConsoleMessage 对象通过页面的 'console' 事件分发。
🌐 ConsoleMessage objects are dispatched by page via the 'console' event.
语法
🌐 Signature
export declare class ConsoleMessage
附注
🌐 Remarks
这个类的构造函数被标记为内部。第三方代码不应直接调用构造函数或创建继承 ConsoleMessage 类的子类。
🌐 The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ConsoleMessage class.
方法
🌐 Methods
|
方法 🌐 Method |
修饰符 🌐 Modifiers |
描述 🌐 Description |
|---|---|---|
|
传递到控制台的参数数组。 🌐 An array of arguments passed to the console. | ||
|
发起控制台消息的Frame,如果消息来自 worker,则为 🌐 The Frame that initiated the console message, or | ||
|
控制台消息的位置。 🌐 The location of the console message. | ||
|
控制台消息来源的 页面,如果消息来自 worker 或框架外部的上下文,则为 🌐 The Page that the console message originated from, or | ||
|
控制台消息堆栈上的位置数组。 🌐 The array of locations on the stack of the console message. | ||
|
控制台消息的文本。 🌐 The text of the console message. | ||
|
控制台消息的类型。 🌐 The type of the console message. | ||
|
发起控制台消息的 WebWorker,如果消息来源于一个框架,则为 🌐 The WebWorker that initiated the console message, or |