jsp页面:跳转 A.jsp 页面 参数编码:
encodeURIComponent(encodeURIComponent(JSON.stringify(data),"UTF-8"),"UTF-8")
<div id="cirInfoExportInfoPage">
</div>
var toPageFormUrl =contextPath+"/A.jsp";
var exportInfoFormHtml="<form id=\"toPageForm\" method=\"post\" name=\"toPageForm\" action=\""+toPageFormUrl+"\" target=\"_blank\">";
exportInfoFormHtml+="<input type=\"hidden\" name=\"exportInfoData\" id=\"exportInfoData\" value=\""+encodeURIComponent(encodeURIComponent(JSON.stringify(data),"UTF-8"),"UTF-8")+"\"/>";
exportInfoFormHtml+="</form>";
$('#cirInfoExportInfoPage').html(exportInfoFormHtml);
$("#toPageForm").submit();
A.jsp页面