示例代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>控制台打印window对象</title>
</head>
<body>
<script>
console.log(window);
</script>
</body>
</html>
2.浏览器右键,检查,选择Console
示例代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>控制台打印window对象</title>
</head>
<body>
<script>
console.log(window);
</script>
</body>
</html>
2.浏览器右键,检查,选择Console
转载于:https://www.cnblogs.com/max-hou/p/10955443.html