js直接关闭当前页面

 window.opener=null; 
 window.open('','_self');
 window.close();

原文地址:https://www.cnblogs.com/jirglt/p/2838650.html