const getQueryParams = (search = window.location.search) => {
const searchParams = new URLSearchParams(search)
const query = {}
for (const p of searchParams) {
const [key, value] = p
query[key] = value
}
return query
}
本文由 邓尘锋 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Feb 17, 2023 at 04:22 pm