不多说,直接上代码 //jq添加插件 (function (window, $) { $.fn.serializeJson = function () { var serializeObj = {}; var array = this.serializeArray(); var str = this.serialize(); $(array).each( function () { if (serializeObj[this.name]) { if ($.isArray(serializeObj…
$.fn.GetPostData = function () { var data = {}; var k = false; $(this).find(".datacontrol").each(function (i, value) { var field = $(value).attr("name"); if (field == null) { field = $(value).attr("id"); } if (value.tagName =…