js关闭当前窗口

//关闭当前窗口
function closeCurrentWindow(){
    top.window.opener=null;
    top.window.open("", "_self");
    top.window.close();
}
原文地址:https://www.cnblogs.com/xmm2017/p/13943856.html