serializeObject function(form){
var o = {};
$.each(form.serializeArray(),function(){
if(o[this['name']]){
o[this['name']] = o[this['name']] +"," +this['value'];
}else{
o[this['name']] = this['value'];
}
})
return o;
}
将form表单序列化成对象
最新推荐文章于 2022-04-23 15:47:49 发布