//js方法:序列化表单 function serializeForm(form){ var obj = {}; $.each(form.serializeArray(),function(index){ if(obj[this['name']]){ obj[this['name']] = obj[this['name']] + ','+this['value']; } else { obj[this['name']] =this['value']; } }); return obj; }
序列化表单
最新推荐文章于 2022-06-08 15:33:08 发布