** * @description 自定义序列化表单 * @returns {{unique_id: number}} */ $.fn.serializeObject = function() { var o = {"unique_id":new Date().getTime()}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name]) { var temp =o[this.name]; if(this.value != ''){ temp +=(','+this.value); } o[this.name] = temp; } else { o[this.name] = this.value || ''; } }); return o; };
自定义序列化表单
最新推荐文章于 2023-02-17 09:56:25 发布