1.js的引入.html 526 B

1234567891011121314151617181920212223
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. </head>
  8. <body>
  9. <!--
  10. js => JavaScript
  11. 弱语言类型
  12. -->
  13. <!--
  14. 1.在html标签中添加script标签
  15. 2.在script标签中的src属性里去引入js页面路径
  16. console.log()打印
  17. -->
  18. <!-- <script>
  19. console.log("!1")
  20. </script> -->
  21. <script src="./index.js"></script>
  22. </body>
  23. </html>