fix:未考虑filter 参数为一个函数，报错
serializeArray:将用作提交的表单元素的值组合成键值对组成的数组

$('form').serializeArray();
//=>
[{"name":"golang","value":"456"},{"name":"name","value":""},{"name":"pas
sword","value":""},{"name":"sel","value":[]},{"name":"kaikai","value":""
},{"name":"w","value":""},{"name":"w","value":""}]
fix:params去掉调试....
serialize:将表单元素数组或者对象序列化。

$('form').serialize();
//=> golang=456&name=&password=&sel=&kaikai=&w=asd&w2=asdf