function windowClose(){ if(window.confirm("您是否关闭当前窗口")){ window.close(); } }