代码如下:
<button class="btn" onclick="closeMe();">关闭</button>
<script>function closeMe() {
try {
window.opener = null;
window.open('', '_self');
window.close();
} catch(e) {}
}
</script>
代码如下:
<button class="btn" onclick="closeMe();">关闭</button>
<script>