JSON.parse('{"' + decodeURI(window.location.search.slice(1).replace(/&/g, "\",\"").replace(/=/g, "\":\"")) + '"}')
把url 参数转换成js对象
最新推荐文章于 2023-10-19 21:06:36 发布
JSON.parse('{"' + decodeURI(window.location.search.slice(1).replace(/&/g, "\",\"").replace(/=/g, "\":\"")) + '"}')