1
我是新来的节点WebKit和已托盘这样节点Webkit的托盘上点击带来的窗口前
var gui = require('nw.gui');
var tray = new gui.Tray({ icon: 'images/Appicon.png' });
tray.on('click', function() { console.log("what goes in here?")});
当托盘图标点击我想如果要拉升的窗口中创建它最小化并打开index.html。 现在我得到要打印的日志语句。