摘要: new BrowserWindow({ width:800, height:800, webPreferences:{ nodeIntegration:true, //表示node所有功能都可以在渲染进程中使用 contextIsolation:false, //解决Uncaught Referen 阅读全文
posted @ 2023-01-11 22:44 tetrachloroethylene 阅读(33) 评论(0) 推荐(0)
摘要: { "name": "ele", "version": "1.0.0", "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": 阅读全文
posted @ 2023-01-11 20:23 tetrachloroethylene 阅读(37) 评论(0) 推荐(0)
摘要: index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" 阅读全文
posted @ 2023-01-11 19:25 tetrachloroethylene 阅读(23) 评论(0) 推荐(0)
摘要: 安装Node.js 新建文件夹,如e:/ele VSCode-打开文件夹-e:/ele,在终端中依次键入 npm init //此时生成package.json npm install electron --save-dec //非全局安装,全局使用-g, 很慢,要等 npx electron -v 阅读全文
posted @ 2023-01-11 18:58 tetrachloroethylene 阅读(26) 评论(0) 推荐(0)