ajax 向后台传对象

$.ajax({
url : "accreditSurveyInfo.action",
data : $("form").serialize(),
dataType : "json",
success : function(data) {
var win = art.dialog.open.origin;//来源页面
win.location.reload();
}
});

<form method="post" action="accreditSurveyInfo.action">

<td>定量评分: <input id="quantityScore" name="accreditInfo.quantityScore" type="text" onblur="countFinalScore()"/></td>

将form中数据直接转就可以了

 

http://jquery.cuishifeng.cn/serialize.html

posted on 2015-12-14 12:18  weiguoyuan  阅读(696)  评论(0编辑  收藏  举报

导航