我正在使用var remote = require('electron').remote;并尝试使用该值remote.getGlobal('config').siteUrl
在我的main.js中,我使用了设置值global.
global.config = {siteUrl:"https://localhost:8088"};
在html端(渲染器端)我在mac上undefined创建darwin 时得到的值.app.
另一方面,当我使用npm start它运行应用程序时工作正常.