Building Desktop Applications with ElectronreturnValue = 'hello-main' }); const { ipcRenderer } = require('electron'); console.log(ipcRenderer.sendSync('hello-sync', 'hello-renderer')) // prints "hello-main" ipcRenderer.on('hello-async-reply', (event (event, arg) => { console.log(arg) // prints "hello-main" }); ipcRenderer.send('hello-async', 'hello-renderer'); 14 > npm install > npm start 15 • Features – Electron API 16 17 18 19 https://electronjs0 码力 | 41 页 | 5.70 MB | 1 年前3
共 1 条
- 1













