URL地址JS编码和解码

编码:   var urlEncode = encodeURI(window.location.href);

解码:   var urlDecode = decodeURI(window.location.href);

原文地址:https://www.cnblogs.com/muddy/p/3338624.html