回覆列表
  • 1 # 錢布斯

    <!DOCTYPE html>

    <html>

    <head>

    <meta charset="utf-8" />

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>Page Title</title>

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <script type="text/javascript">

    onload=function(){

    btn.onclick=function(){

    var container = document.querySelector("#container");

    var textInput = document.querySelector("#text");

    var testBtn = document.querySelector("#test");

    testBtn.removeAttribute("onclick");

    container.removeChild(textInput);

    }

    }

    </script>

    </head>

    <body>

    <div>

    <input type="text" name="text" value="" />

    </div>

    </body>

    </html>

  • 中秋節和大豐收的關聯?
  • 田徑的“田”和“徑”是不是兩種不同的比賽?