SOURCE

console 命令行工具 X clear

                    
>
console
<html>
  <head>
  </head>
  <body>        
    <script type="text/javascript">
        function myFunction() {
            alert("你点击了按钮")
        }
    </script>
    <button onclick="myFunction()">这是一个按钮</button> 
  </body>
</html>