Jquery serializes a form into an object
- 2020-03-30 00:41:46
- OfStack
var aa=function(form){
var o={};
$.each(form.serializeArray(),function(index){
if(o[this['name']]){
o[this['name']] = o[this['name']]+","+this['value'];
}else{
o[this['name']] = this['value'];
}
});
return o;
}