<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>24kcs好帅哦</title>

</head>
<body>
<script>


    //获取body
    console.log(document.body);//获取的是元素--标签
    //获取title
    console.log(document.title);//标签中的值
    document.title="嘎嘎去";
    //获取html
    console.log(document.documentElement);
</script>

</body>
</html>

 

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2021-12-22
  • 2021-12-18
  • 2022-12-23
  • 2021-04-28
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案