解决JS在url中传递参数时参数包含中文乱码的问题 布糕兴 2022-08-23 197 阅读1分钟 解决JS在url中传递参数时参数包含中文乱码的问题 var url =decodeURI(decodeURI(location.search)); //获取url中"?"符后的字串,使用了两次decodeRUI解码