打印之前执行此段代码,使所有input得以赋值 var input = $('input'); input.each(function(){ $(this).attr("value",$(this).val()); });