$("input").attr("value") -- 获取的是input的默认值 $("input").val() -- 获取的是input的当前值 转载于:https://www.cnblogs.com/jingjingdidunhe/p/7406379.html