Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我写过这样的代码
setTimeout('newWindow.close();',1000);
但是这段代码不起作用。它不会给出任何错误,但弹出窗口不会被破坏。
有谁能够帮我 ?
在您的 php 代码中的脚本标记中尝试此操作
setTimeout('window.close()', 2000);