表单序列化为对象

function serializeObject(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;
			}

  

原文地址:https://www.cnblogs.com/Abner5/p/5949261.html