```// 新增联系人的action
public String addPerson() {
ser.addPerson(person);
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("application/json;charset=utf-8");
return null;
}
$("input[id=addSubmit]").live("click",function () {
function Person() {
this.name = $("#name").val();
this.mobile = $("#mobile").val();
this.telphone = $("#telphone").val();
this.email = $("#email").val();
this.city = $("#city").val();
this.birthday = $("#birthday").val();
}
var person = new Person();
console.log(person);
/*var person={
"name":$("#name").val(),
"mobile":$("#mobile").val(),
"telphone":$("#telphone").val(),
"email":$("#email").val(),
"city":$("#city").val(),
"birthday":$("#birthday").val()
};*/
$.get(
"${pageContext.request.contextPath}/person/addPerson",
"person="+JSON.stringify(person),
"json"
);
})