$("button").click(function(){ console.log($("form").serialize()); }); 要表单元素的值包含到序列字符串中,元素必须使用 name 属性。