关闭当前浏览器窗口对象,兼容ie,chrome,不兼容firefox,firefox需要在浏览器中进行设置, function closeWindow(){ window.opener=null; window.open('','_self'); window.close(); }