text: //jquery form序列化转换为json对象
  (function($) {
  	$.fn.serializeJson = function() {
  		var serializeObj = {};
  		var array = this.serializeArray();
  		var str = this.serialize();
  		$(array).each(
  				function() {
  					if (serializeObj[this.name]) {
  						if ($.isArray(serializeObj[this.name])) {
  							var x=this.value;
  							console.log(x);
  							serializeObj[this.name].push(this.value);
  						} else {
  							serializeObj[this.name] = [
  									serializeObj[this.name], this.value ];
  						}
  					} else {
  						serializeObj[this.name] = this.value;
  					}
  				});
  		return serializeObj;
  	};
  })(jQuery);