前端(轉換): var param = XXXXXXXXXXXXXXXXXX; param = decodeURIComponent(param,true); param = encodeURI(param, "UTF-8"); $.post('<%=request.getContextPath() ...
前端(轉換):
var param = XXXXXXXXXXXXXXXXXX;
param = decodeURIComponent(param,true);
param = encodeURI(param, "UTF-8");
$.post('<%=request.getContextPath()%>a.html' ,encodeURI(param, "UTF-8"),function(data){
reFresh();
},"json");
後臺(解析):
String remark = URLDecoder.decode(model.getPhyeRemark(), "utf-8");