SOURCE

console 命令行工具 X clear

                    
>
console
document.write("<br/>"+"welcome")
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title></title>
    </head>
    <body>
        <script>
            document.write("Heather1"+"<br/>");
            function callAlert(){
                alert("welcome2");
            }
         </script>
         <button onclick="alert('welcome1')">点击1</button>
          <button onclick="callAlert()">点击2</button>
    </body>
</html>