标签:ret nbsp obj value return orm 结果 serialize 对象
JQ表单序列化变成 对象
function serializeObject(form) {
var o = {};
$.each(form.serializeArray(), function(index) {
if (o[this[‘name‘]]) {
o[this[‘name‘]] = o[this[‘name‘]] + ";" + this[‘value‘];
} else {
o[this[‘name‘]] = this[‘value‘];
}
});
return o;
}
、、、、、、、、、、、、、
function serializeObject(form) 调用函数
结果变成一个对象
标签:ret nbsp obj value return orm 结果 serialize 对象
原文地址:http://www.cnblogs.com/nns4/p/6955241.html