zoukankan      html  css  js  c++  java
  • JS 引入

     1  1 <!DOCTYPE html>
     2  2 <html>
     3  3     <head>
     4  4         <meta charset="utf-8" />
     5  5         <title></title>
     6  6         <!--外部引入方式必须注意,引入自己能够控制的 js 代码-->
     7  7         <script type="text/javascript" src="js/index.js"></script>
     8  8         
     9  9         
    10 10         
    11 11         <!--script标签可以有无数个-->
    12 12         <script type="text/javascript">
    13 13             //这里面写 js 代码
    14 14         </script>
    15 15     </head>
    16 16     <body>
    17 17         
    18 18         
    19 19         <script type="text/javascript">
    20 20             //这里面写 js 代码
    21 21         </script>
    22 22         
    23 23     </body>
    24 24     
    25 25         <!--此处也可以引入js 代码-->
    26 26         <script type="text/javascript" src="js/index.js"></script>
    27 27     
    28 28         <!--推荐写在 body 结束之后-->
    29 29         <script type="text/javascript">
    30 30             //这里面写 js 代码
    31 31         </script>
    32 32 </html>
  • 相关阅读:
    POJ 2486
    奇怪的电梯
    穿越泥地(mud)
    救援行动(save)
    As Fast As Possible
    Connecting Universities
    They Are Everywhere
    Cells Not Under Attack
    吃饭
    花店橱窗(flower)
  • 原文地址:https://www.cnblogs.com/PowellZhao/p/5537467.html
Copyright © 2011-2022 走看看