我们用js的close()方法关闭窗口时,总会弹出关闭提示,刚刚找到了直接关闭的方法。
方法如下:
<script>
window.opener.location.href=window.opener.location.href;
window.opener=null;
window.open('','_self');
window.close();
</script>
window.opener.location.href=window.opener.location.href;
window.opener=null;
window.open('','_self');
window.close();
</script>