获取input中的值

先在input标签中添加一个id='getvalue'
document.getElementById("getvalue").value;
原文地址:https://www.cnblogs.com/huangshiyu13/p/5778071.html