請問這個操作有什么實際用途?(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://idcbgp.cn");
? ? ? ? ?mywin.close();
? </script>
</head>
<body>
</body>
</html>
2016-11-10
如果彈出了一個窗口,就可以用它關(guān)閉對應(yīng)的窗口
2016-11-09
就是關(guān)閉剛剛代碼中打開的頁面?"http://idcbgp.cn",相當(dāng)于剛打開就關(guān)閉了,所以會看到屏幕閃一下,還在當(dāng)前頁面