1.jQuery方式获取:$("#test").val(); 2.js方式获取:document.getElementById("test").value; 转载于:https://www.cnblogs.com/itxinke/p/7199842.html