IpcMainEvent 对象继承自 Event
🌐 IpcMainEvent Object extends Event
type字符串 - 可能的值包括frameprocessId整数 - 发送此消息的渲染进程的内部 IDframeId整数 - 发送此消息的渲染器框架的 IDreturnValueany - Set this to the value to be returned in a synchronous messagesenderWebContents - 返回发送消息的webContentssenderFrameWebFrameMain | null 只读 - 发送此消息的框架。如果在框架导航或被销毁后访问,可能是null。portsMessagePortMain[] - 随此消息传递的 MessagePorts 列表reply函数 - 一个函数,用于向发送原始消息的渲染器框架发送 IPC 消息。你应该使用此方法来“回复”发送的消息,以确保回复会发送到正确的进程和框架。channel字符串...argsany[]