electron引用nodejs模块 使用require,暂不支持import写法 另外,在主进程中 new BrowserWindow({ webPreferences: { nodeInteration: true } })