不挂科搜题免费

问题:

已知id为username的input输入框,希望获取这个输入框的输入值,怎么做

答案:

document.getElementById("username").value