dom啦1

94 阅读1分钟
<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
<script>
	//什么是window,窗口。
	//什么是document?代码窗口中的页面
	//document是window的属性,也是一个对象.
	// document对象保存了网页上所有的内容, 通过document对象就可以操作网页上的内容
	console.log(window.document);
	console.log(typeof window.document);
	console.log(window.document.title);
</script>
</body>
</html>

在这里插入图片描述