MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / handleCloseWin

Function handleCloseWin

tech-study.js:3665–3673  ·  view source on GitHub ↗

* @description 关闭子窗口

()

Source from the content-addressed store, hash-verified

3663 * @description 关闭子窗口
3664 */
3665function handleCloseWin() {
3666 try {
3667 window.opener = window;
3668 const win = window.open('', '_self');
3669 win?.close();
3670 top?.close();
3671 }
3672 catch (e) { }
3673}
3674/**
3675 * @description 等待窗口关闭
3676 * @param newPage

Callers 1

handleCloseTaskWinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected