node-webkit 打开多个窗口崩溃 有什么解决方案吗? 写了3个html: 1.html:
var gui = require('nw.gui'),
win = gui.Window.get(),// dom window === win.window
$ = function(query){
return document.querySelector(query);
};
$('#open').onclick = function(){
win.close();
gui.Window.open('2.html', {
position: 'center',
width: 250,
height: 500
});
}
2.html:
var gui = require('nw.gui'),
win = gui.Window.get(),// dom window === win.window
$ = function(query){
return document.querySelector(query);
};
$('#open').onclick = function(){
gui.Window.open('3.html', {
position: 'center',
width: 250,
height: 500
});
}
第一个点开第二个正常,再从2.html点击打开第三个时候就崩溃,自动关闭,这是什么情况? 求解决%>_<%!!!!!!!!!!!!!!!!!!!