为什么会打开两个窗口,两个确认框,但只输出一次?
<script type="text/javascript"> var mywin = window.open("http://www.imooc.com"); if(confirm("?")){ mywin.close(); } document.write("aaaaaaa"); </script>
<script type="text/javascript"> var mywin = window.open("http://www.imooc.com"); if(confirm("?")){ mywin.close(); } document.write("aaaaaaa"); </script>
2017-11-04
举报