//将表单中用户输入的内容转化为对象
function serializeObject(obj) {
var result = {}
var params = obj.serializeArray()
$.each(params, function(index, value) {
result[value.name] = value.value;
})
return result
}