4
我正在搜索幾個小時,瞭解如何使用node-webkit將變量傳遞到新打開的窗口。將變量傳遞到一個新打開的窗口 - nwj(node-webkit)
該任務非常簡單(如HTTP POST),但在nwj(node-webkit)文檔中沒有關於此的任何說明。
代碼,我用它來打開新窗口:
var win = gui.Window.open ('print.html', {
position: 'center',
width: 901,
height: 127
});
win.on ('loaded', function(){
// the native onload event has just occurred
var document = win.window.document;
});
謝謝!
感謝您的幫助和詳細的示例! –
當然 - 我也遇到過困難,偶然發現瞭解決方案。 – Ewald