top是一个特殊的变量名
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
</body>
</html>
<script>
console.log(top); //打印的结果为Window {window: Window, self: Window, document: document, name: "", location: Location, …}
//top指向的是window
</script>