![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
electorn
αβγδη
这个作者很懒,什么都没留下…
展开
-
electron v1.x、v2.x 写法
const {app, BrowserWindow} = require('electron')const path = require('path')const url = require('url')function createWindow () { // Create the browser window. const mainWindow = new BrowserWindow({ width: 800, height: 600, webPreferenc原创 2022-02-12 17:48:06 · 91 阅读 · 0 评论 -
记录下npm electron-builder 的下载位置
macOS ~/Library/Caches/electron-builderlinux ~/.cache/electron-builderwindows %LOCALAPPDATA%\electron-builder\cache``原创 2022-02-11 13:58:44 · 597 阅读 · 0 评论 -
electron设置nodeIntegration 无效
当你设置nodeIntegration 为true不起作用的时候可以将contextIsolation改为false//main.js webPreferences: { nodeIntegration: true, // 是否集成 Nodejs contextIsolation: false }//index.html中<script> window.electron = require("electron"); </script>`原创 2021-07-06 08:57:13 · 3251 阅读 · 4 评论