請問這個操作有什么實際用途?(window.close())
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>close()</title>
? <script type="text/javascript">
? ? ?var mywin=window.open("http://www.xianlaiwan.cn");
? ? ? ? ?mywin.close();
? </script>
</head>
<body>
</body>
</html>
2016-11-10
如果彈出了一個窗口,就可以用它關閉對應的窗口
2016-11-09
就是關閉剛剛代碼中打開的頁面?"http://www.xianlaiwan.cn",相當于剛打開就關閉了,所以會看到屏幕閃一下,還在當前頁面