html的结构访问

<!DOCTYPE html>

<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>我的页面</title>
</head>
<body>


</body>
</html>
<script>
    console.log(document.title);  // 访问标题标签
    console.log(document.head);
    console.log(document.body);
    console.log(document.documentElement);
</script>

相关文章:

  • 2022-02-20
  • 2021-09-25
  • 2021-06-07
  • 2022-01-05
  • 2022-12-23
  • 2021-10-06
  • 2021-08-04
  • 2022-12-23
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案