消息监听ipcRenderer.on(channel, listener)
channel Stringlistener Function
ipcRenderer.once(channel, listener)
channel Stringlistener Function
ipcRenderer.removeListener(channel, listener)
channel Stringlistener Function
ipcRenderer.removeAllListeners([channel])
channel String (optional)
发送消息ipcRenderer.send(channel[, arg1][, arg2][, ...])
ipcRenderer.sendSync(channel[, arg1][, arg2][, ...])
ipcRenderer.sendToHost(channel[, arg1][, arg2][, ...])
|
请发表评论