避免jsp传参返回乱码问题

时间:2021-10-28 15:23:02
$("#searchForm input").each(function(i){
var obj=$(this);
var va=obj.val();
obj.val(decodeURIComponent(va,true));
}); var params=$("#searchForm").serialize();
params = decodeURIComponent(params,true);
params = encodeURI(encodeURI(params));
window.location.href="<%= path %>/susFristReview/addheader.ik?1=1&"+params;