这里讲一些关于electron中窗口的设置,主要是对原API的解读
创建一个新的窗口
const BrowserWindow = require('electron').remote.BrowserWindow
const path = require('path')
const newWindowBtn = document.getElementById('new-window')
newWindowBtn.addEventListener('click', function (event) {
const modalPath = path.join('file://', __dirname, '../../sections/windows/modal.ht