zoukankan      html  css  js  c++  java
  • JS document 类型

     1 <!DOCTYPE html>
     2 <html>
     3     <head>
     4         <meta charset="UTF-8">
     5         <title>我是title</title>
     6     </head>
     7     <body>
     8     </body>
     9     <script type="text/javascript">
    10         // 1、获取 html 元素document.documentElement
    11          //console.log(document.documentElement);
    12          //2、获取 body 元素
    13         // console.log(document.body);
    14          //3、获取 title 元素的文本(可以写入修改)
    15         // console.log(document.title);
    16          //document.title = "我是新来的";
    17          // 4、获取文件的网址
    18         // console.log(document.URL);
    19          // 5、返回当前文档的域名 localhost
    20          //console.log(document.domain);
    21          
    22          /*查找元素的6个方法,基础课*/
    23             
    24         //当前页面写入内容  document.write()
    25 
    26     </script>
    27 </html>
  • 相关阅读:
    CQL
    gossip协议
    Cassandra删除数据的坑
    Cassandra维护数据一致性的策略
    Cassandra查询出错
    string的 insert
    数字游戏(数学推理
    deque
    暗黑字符串(递推
    最大的奇约数和
  • 原文地址:https://www.cnblogs.com/PowellZhao/p/5627331.html
Copyright © 2011-2022 走看看