ConsoleMessage.(构造函数)
构造 ConsoleMessage
类的新实例
签名:
class ConsoleMessage {
constructor(
type: ConsoleMessageType,
text: string,
args: JSHandle[],
stackTraceLocations: ConsoleMessageLocation[]
);
}
参数
参数 | 类型 | 描述 |
---|---|---|
type | ConsoleMessageType | |
text | 字符串 | |
args | JSHandle[] | |
stackTraceLocations | ConsoleMessageLocation[] |