js入门 1.js代码输入的位置 <script> //写js代码 </script> 2.js的两种输出方式 1、 alert()类似于弹窗效果 2、console.log()在控制台打印 3.hello word <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title ></title> <script> alert("hello word"); </script> </head> <body> </body> </html>