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 |
|---|---|---|
| args() | 传递到控制台的参数数组。 🌐 An array of arguments passed to the console. | |
| location() | 控制台消息的位置。 🌐 The location of the console message. | |
| stackTrace() | 控制台消息堆栈上的位置数组。 🌐 The array of locations on the stack of the console message. | |
| text() | 控制台消息的文本。 🌐 The text of the console message. | |
| type() | 控制台消息的类型。 🌐 The type of the console message. |