// gui = global.window.nwDispatcher.requireNwGui() --original // gui = window.require('nw.gui') gui = require('nw.gui')
能夠嘗試以上幾種獲取gui的方式。javascript