parent.window.location.href 和 iframe中src的乱码问题。
要在这两个url地址中传中文,必须加编码,然后再解码。
编码:encodeURI(encodeURI("包含中文的URL串"))
解码:java.net.URLDecoder.decode("需要解码的URL串","utf-8");
parent.window.location.href 和 iframe中src的乱码问题。
要在这两个url地址中传中文,必须加编码,然后再解码。
编码:encodeURI(encodeURI("包含中文的URL串"))
解码:java.net.URLDecoder.decode("需要解码的URL串","utf-8");