html怎么拿到一個input標簽的值?
給按鈕加個單擊onclick=”receive();“在js里面寫:function receive(){ var username = document.getElementById("username"); alert(username); var password = document.getElementById(“password"); alert(password);}
html怎么拿到一個input標簽的值?
給按鈕加個單擊onclick=”receive();“在js里面寫:function receive(){ var username = document.getElementById("username"); alert(username); var password = document.getElementById(“password"); alert(password);}