javascript - window.opener = null; window.open('', '_self'); window.close();
伊谢尔伦
伊谢尔伦 2017-04-10 15:52:58
0
1
1087

为什么'安全退出'网站要设置window.opener = null; window.open('', '_self'); 而不直接close(),谢谢.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

répondre à tous(1)
阿神

因为非脚本打开的窗口尝试关闭自己时无效或者需要用户确认。IE 6 是个例外。

设置 opener 为 null 我也不了解为什么。

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!