=====ipcMain,ipcRenderer=====
----
*main.jsWindow生成
**preload.js
** contextIsolation: false
win.loadFile('index.html');
</pre>
*main.js 通信
<pre>
const { ipcMain } = require('electron');
ipcMain.handle('invoke-test', (ev, msg) => {
console.log("Message From Renderer:" + msg);
return "Main response!";
});
</pre>
*preload.js
<pre>