$.fn.extend({
serializeObject:function(){
var p={},d={},a=this.serializeArray();
$.each(a,function(){
var s=p[this.name];
s=!s?[]:s;
s.push(this.value);
p[this.name]=s;
});
for(var kin p){
d[k]=p[k].join()
}
return d;
}
});
$.fn.extend({
serializeObject:function(){
var p={},d={},a=this.serializeArray();
$.each(a,function(){
var s=p[this.name];
s=!s?[]:s;
s.push(this.value);
p[this.name]=s;
});
for(var kin p){
d[k]=p[k].join()
}
return d;
}
});
本文标题:serializeObjec
本文链接:https://www.haomeiwen.com/subject/ugsyoftx.html
网友评论