Electron共2篇
electron技术分享
Electron loadFile加载路由-祥拓软件

Electron loadFile加载路由

开发模式:window.loadURL(process.env['ELECTRON_RENDERER_URL'] + '/#/xxxx')打包后:window.loadFile(join(__dirname, '../renderer/index.html'), { hash: 'xxx' }) 
祥拓软件的头像-祥拓软件赞助钻石会员祥拓软件23天前
0110
Electron Http打开摄像头-祥拓软件

Electron Http打开摄像头

代码如下:protocol.registerSchemesAsPrivileged([ { scheme: 'http', privileges: { bypassCSP: true, secure: true, supportFetchAPI: true, corsEnabled: true } } ]);
祥拓软件的头像-祥拓软件赞助钻石会员祥拓软件2个月前
01220