JS中用encodeURIComponent编码两次
var p = {};
p.Map = [{f : 'customNo', t : '客户编号'},{f : 'customName', t : '客户名称'}];
var param = JSON.stringify(p);
var url = "http://localhost:8080?data=" + encodeURIComponent(encodeURIComponent(param))
window.open(ulr);
JAVA中解码
String data = request.getParameter("data");
data = java.net.URLDecoder.decode(data, "UTF-8");
https://blog.csdn.net/csdnluolei/article/details/84973847