
electron
watts_j
体验技术
展开
-
Electron在react中的进程间的通信
在react中使用electron const {remote, ipcRenderer} = window.require('electron') // 调用此js文件,引入需要的实例等 export { remote, ipcRenderer } ipcMain 从主进程到渲染进程的异步通信。 1.同步 、通过returnValue将此设置为在一个同步消息中返...原创 2019-05-20 09:49:54 · 2607 阅读 · 0 评论 -
Electron对磁盘文件的处理
首先、选中文件 使用:electron的remote模块的dialog const onImport = () => { const { dialog } = remote let that = this dialog.showOpenDialog({title: '你好,文件导入', filters: [{name: 'wallet', e...原创 2019-05-20 18:44:57 · 1707 阅读 · 0 评论