• JS写哪呢?
    写到我们的网页中
<!DOCTYPE html>
<html lang="ch">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- JS代码需要写到我们的script标签中 -->
    <script type="text/javascript">
        // 控制浏览器弹出一个警告框
        //alert("Hello,world!");

        //向body标签中写入内容
        //document.write("Hello,world!");

        //向控制台输出一个内容
        console.log("Hello,world!");
	
        //总结一下,这三条都是输出语句
        /*
         *alert("Hello,world!");
         *document.write("Hello,world!");
         *console.log("Hello,world!");
         */
    </script>
</head>
<body>
    
</body>
</html>