设置窗口默认最大化、全屏(electron) 一、默认最大化 win = new BrowserWindow({show: false}) win.maximize() win.show() 二、默认全屏 win = new BrowserWindow({fullscreen: true})
参考:
https://electronjs.org/docs/api/browser-window#browserwindow-setfullscreen-flag https://github.com/electron/electron/issues/7076 https://stackoverflow.com/questions/39062131/electron-set-fullscreen-onclick