📌  相关文章
📜  在反应中获取 url 查询 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:31.996000             🧑  作者: Mango

代码示例2
const getQueryParams = () => window.location.search.replace('?', '').split('&').reduce((r,e) => (r[e.split('=')[0]] = decodeURIComponent(e.split('=')[1]), r), {});