• JavaScript的一些基本语句代码如下!!!!


    <html>
    <body>

    <script type="text/javascript">
    document.write("<h1>这是标题</h1>");
    document.write("<p>这是段落。</p>");
    document.write("<p>这是另一个段落。</p>");
    </script>

    </body>
    </html>

    <html>
    <body>

    <script type=" 2881064178text/javascript">
    // 这行代码输出标题:
    document.write("<h1>这是标题</h1>");
    // 这行代码输出段落:
    document.write("<p>这是段落。</p>");
    document.write("<p>这是另一个段落。</p>");
    </script>

    </body>
    </html>

    <html>
    <body>

    <script type="text/javascript">
    /*
    下面的代码将输出
    一个标题和两个段落
    */
    document.write("<h1>这是标题</h1>");
    document.write("<p>这是段落。</p>");
    document.write("<p>这是另一个段落。</p>");
    </script>

    </body>
    </html>

    <html>
    <body>

    <script type="text/javascript">
    /*
    document.write("<h1>这是标题</h1>");
    document.write("<p>这是段落。</p>");
    document.write("<p>这是另一个段落。</p>");
    */
    </script>

    </body>
    </html>

  • 相关阅读:
    统计候选人
    九宫格输入法
    前端同学面试准备
    1、单元格内换行诀窍、合并单元格、身份证、日期乱码
    读写锁
    混合锁、互斥锁
    原子操作、自旋锁
    pipeline httpmodule
    vm +cenos7+gitlab 02
    vm +cenos7+gitlab 01
  • 原文地址:https://www.cnblogs.com/2881064178dinfeng/p/6134029.html
Copyright © 2020-2023  润新知