js

<html><head lang="en">
    <meta charset="UTF-8">
    <title>输出helloWorld</title>
    <script>
        // 弹框,可用于阻塞操作
       alert('hello world');
        // 用于调试
       console.log('hello world!');
       console.log('hello world!');


    </script>
</head>
<body>


<!--开发中经常将JS放到body的最后面-->
<!--<script>// ... </script>-->

</body></html>
 
原文地址:https://www.cnblogs.com/yintingting/p/4693912.html