12 2021 档案
摘要:查看了github的issues:https://github.com/electron/electron/issues/28502 发现原来是electron版本问题,11是可以的(亲测可行),12、13、14都有问题,解决方法就是降低electron的版本。 或者升级12、13、14的版本,比如
阅读全文
摘要:解决方案: 1.进入淘宝源镜像网站 https://npm.taobao.org/mirrors/electron/ 2. 选择版本,然后选择安装包(.zip文件)下载 3. 放到当前用户文件夹下,已windows系统为例(C:\Users\administrator\.electron)、打包时用
阅读全文
摘要:原来的 git clone https://github.com/xxx.git 改为 git clone https://github.com.cnpmjs.org/xxx.git
阅读全文
摘要:思路:在主线程单独开出一个打印的窗口(可以将该窗口隐藏),通过window的webcontent对象进行打印 本文项目基于 electron-vue 项目地址 https://github.com/kethonC/electron-vue-print 1. 主进程文件 main/index.js '
阅读全文
摘要:// 由Image对象获取图片的Base64 // img: Image对象, width、height调用时传入具体像素值,控制大小 ,不传则默认图像大小 function getBase64Image (img, width, height) { const canvas = document.
阅读全文
摘要:call function Fn(a, b, c) { console.log(this.msg, a, b, c) } const o = { msg: 'hello, world!', fn1: function () { console.log(this.msg) } } // Fn.call
阅读全文
摘要:打开powershell,以管理员身份运行 2.输入:set-ExecutionPolicy RemoteSigned,然后:输入 y
阅读全文

浙公网安备 33010602011771号