function updateStatus() {
var data = {};
var str = $("#ver-form").serialize();
str = decodeURIComponent(str,true);
data.remark = str + "&eventId=" + eventId;
$.ajax({
type: "POST",
url: '${ctx}/event/updateRemarkEvent',
data: data,
async: false,
dataType: "json",
success: function (data, textStatus) {
},
contentType: "application/x-www-form-urlencoded"
});
closeRemark();
initializeForm();
}
原因:.serialize()自动调用了encodeURIComponent方法将数据编码了
解决方法:调用decodeURIComponent(XXX,true);将数据解码